Questions tagged [paths]

paths give the location of bin directory which consists of (latex) executable files in any platform. Post installation it is important to set the path for the bin directory. use this tag for installation issues

Filter by
Sorted by
Tagged with
132 votes
7 answers
84k views

How to include graphics with spaces in their path?

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces. Include image with spaces in path directory to be processed with ...
59 votes
2 answers
18k views

Can a default path be set globally for \input{...} akin to \graphicspath{...}?

For the graphicx package, we can use \graphicspath{...} so that we can directly use filenames in the argument of \includegraphics{...}. Can a similar thing be done for directly using filenames in \...
46 votes
1 answer
53k views

TikZ: text along path as node

I'm using the decorations library to put bended text along a path. That works fine. However, I'd like to have the bended text as a node, so that I can later use it as a reference (for instance to draw ...
45 votes
4 answers
36k views

How to make the main file recognize relative paths used in the imported files?

I'm currently using doxygen to generate some documentation for a project, and doxygen generate some LaTeX code that then can be used to generate a nice pdf. But let's say I would like to write ...
  • 2,164
44 votes
4 answers
66k views

\input and absolute paths

Sometimes it is convenient to use an absolute path to include a preamble. To do so, I use the following "hack": \documentclass[a4paper, 12pt]{article} \newcommand{\folder}{/path/to/folder} \input{\...
  • 28.1k
39 votes
2 answers
30k views

Draw a path with dashed start and solid end

I want to draw a line or path with dashed line style at its begining and a solid line at the end, but in only one path (I mean, not drawing two path), something like : \documentclass{minimal} \...
  • 1,037
34 votes
2 answers
41k views

Meaning of bend right or left in TikZ?

The following code actually comes from the PGF manual. It works fine, but I have a difficult time in understanding it (I'm new to TikZ) \documentclass{article} % say \usepackage{tikz} \...
  • 699
32 votes
4 answers
17k views

Full path of current file

This question led to a new package: currfile-abspath (subpackage to currfile) How can I display the full path of the tex file that I compile? It is a simple file, no include or input present. Edit:...
  • 2,923
32 votes
1 answer
22k views

Link to file in the parent folder

I have a folder, say C:\example\paper with a bib-file C:\example\1.bib. I also have a tex file C:\example\paper\main.tex where I would like to put a link to 1.bib. I can put the whole path, of ...
  • 1,378
30 votes
3 answers
9k views

Drawing random paths in TikZ

I am looking for a way to draw with TikZ something that looks like a random path. Here is an inspiration: Is it possible to have TikZ generate something that would be similar to a random path ...
30 votes
6 answers
72k views

Specifying an absolute Windows path for \includegraphics

I know that includegraphics can be used in Latex to include images into the document, but how can I specify a path for that file? \includegraphics[]{picture-name} Instead of asdd.jpg I want to ...
's user avatar
30 votes
1 answer
2k views

Is there a way to create Tex Live or LaTeX virtual environment?

I am looking for a Python-style virtualenv or venv to create a virtual environment where I can install LaTeX packages such that the packages are available to my current LaTeX project only (but not ...
  • 2,937
28 votes
2 answers
21k views

Can I \usepackage with a full path?

As the name suggests - can I do something like: \usepackage{/home/nebffa/Desktop/maths/questions/fillwithlines.sty} LaTeX is throwing errors at me when I try to do it.
  • 823
27 votes
3 answers
16k views

Can I have a path argument that contains spaces?

I'm trying to get biblatex to see where I have my .bib file located, but I have a space in the path to the file: \addbibresource{~/Documents/My Project/TheBib.bib} How do I specify a full path that ...
  • 10.1k
26 votes
1 answer
18k views

Multiple graphics directory

Here is what I am trying to do. I am writing a document which has many figures. In order to manage the figures it is very convenient for me to keep different types of figures in different folders. Now ...
  • 383
25 votes
4 answers
15k views

pdflatex fails within Emacs.app, but works in terminal

I'm running OS X 10.7 with Emacs 24, Auctex 11.86 and TexLive 2011 via MacTex. When i run LaTeX through Emacs in the terminal it outputs my test.tex as test.pdf just fine. However, when i run the same ...
  • 591
23 votes
4 answers
6k views

Is there a way to draw TikZ lines on the "inside" or "outside" of a path?

In this answer, Jake points out The miter option is more "correct" in that it doesn't add new corners to a shape or introduce rounding. In some cases with very sharp angles, the results might ...
  • 6,862
23 votes
1 answer
8k views

Is there an equivalent to \graphicspath for listings?

How can I make the \lstinputlisting to search for files in a given directory? I'm thinking of a solution along the lines of the solution to this question. I would like to have a solution like \...
  • 10.8k
22 votes
2 answers
12k views

Increase the bending distance of a ``to`` path in TikZ

I have problem with an small graph. The path between the node J and B should to the right of node I. Is there a way to do this? \documentclass[11pt]{article} \pagestyle{empty} \usepackage{tikz} \...
  • 653
20 votes
3 answers
12k views

How to use tilde or space in includepdf filename?

I'm trying to include a pdf in a document, using pdfpages package, but I'm having troubles when filename contains tilde or space. e.g. \includepdf[pages=-]{C:/Users/MYUSER~1/AppData/Local/Temp/...
  • 537
20 votes
3 answers
3k views

Automatically Locate Included Images

Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of: \includegraphics{path/to/image/myfig.pdf} It would be: \includegraphics{myfig.pdf} ...
20 votes
3 answers
5k views

How to fine tune rotation of text along circular path?

After searching the web and finally coming from here (recreating a logo), I couldn't find an answer to what I am looking for. I want to rotate a text inside a circle and have a full control/fine ...
  • 4,063
20 votes
1 answer
3k views

Draw additional parallel paths in TikZ

How can parallel lines elegantly be added to an existing path? I am looking for a solution or hint to, how a general style can be made, that works with any path. Example path: \documentclass{article}...
19 votes
3 answers
182k views

PdfLaTeX in Texmaker doesn’t work: “Could not start the command”

I have a problem with LaTeX. I have installed MiKTeX 2.9 and Texmaker, and when I try to compile a .tex file in Texmaker, I get the error Could not start the command When I try to build it from the ...
16 votes
4 answers
7k views

How can I properly resolve relative paths in `\usepackage`?

I have a dedicated directory for my project; within that are nested directories source/, output/ and styles/ that contain the .tex, .pdf and .sty files. I was surprised to find that while \...
  • 1,753
16 votes
6 answers
25k views

tlmgr is not accessible after installing TeX Live 2011 on a Ubuntu system

tlmgr -gui No command 'tlmgr' found, did you mean: Command 'vlmgr' from package 'qdbm-util' (universe) Command 'rlmgr' from package 'qdbm-util' (universe) tlmgr: command not found Since I ...
  • 6,453
16 votes
1 answer
2k views

TikZ: Decorated paths without straight segment

When a path is decorated in TikZ a straight segment might be added at the end, depending on the length of the path. This is undesirable in some cases, and a resolution for the snake decoration has ...
  • 672
16 votes
2 answers
48k views

Specifying path correctly for .bib file [closed]

Given the directory structure: B-Galactosidase Report\LaTeX\Min ex\ My .tex file is inside "Min ex" directory. My .bib file is inside the "B-Galactosidase Report" directory two levels above that. ...
  • 6,453
16 votes
1 answer
32k views

LaTeX can't find my .bst file. How do I show it the way?

My question is nearly identical to that posed in these: Where do I place my own .sty or .cls files, to make them available to all my .tex files? How to have local package override default package ...
  • 4,363
16 votes
1 answer
2k views

TikZ finishes a morphed path with a straight segment

When, in TikZ, I apply a path morphing decoration (say, "snake") and specify the segment length option, I often finish up with a straight segment at the end of the path, such as which often is not ...
15 votes
2 answers
10k views

Where is PATH modified to include /usr/texbin?

I've noticed that my PATH variable includes /usr/texbin, as it should, but I can't find any bash files that modified my PATH variable to include it. How did the TeXLive installation modify my PATH ...
  • 151
15 votes
2 answers
14k views

Latex on Linux: Path problem after new install of TeX Live

UPDATE: between the suggestions made in comments, and Andrew Stacey's patient walkthrough/diagnostic, the problem was eventually solved by correcting a faulty environment variable in the bashrc. It's ...
14 votes
5 answers
3k views

TikZ: complicated paths, e.g. for complex integrals

I would like to illustrate lecture notes on complex analysis, which by its nature is a lot about how the lines of integration are running through the complex plane. However, I'm having trouble finding ...
  • 1,525
14 votes
1 answer
746 views

What do these commands specifically do?

\makeatletter \providecommand*{\input@path}{} \g@addto@macro\input@path{{./level1//}{./level1/level2//}{./level2//}} \makeatother I understand: \makeatletter \makeatother are just necessary for ...
  • 299
14 votes
3 answers
16k views

How do I restore my TeX path?

I have an up-to-date installation of MacTeX (2012) on my machine, but a recent upgrade of my system software seems to have removed TeX from my path. TeX Live Utility recognizes my installation and ...
  • 10.1k
14 votes
2 answers
7k views

Obey spaces with URL package (path command)

Background Using the \path command from the URL package to mark-up directory paths. Some of the paths have spaces. Problem The preamble is set to: \usepackage{algorithm} \usepackage{booktabs} % ......
13 votes
3 answers
2k views

Determine the operating system

I often switch between Linux and Windows. A number of my LaTeX files use images from a central folder. All of these are within a Dropbox folder, which is how I sync between them. The dropbox folders ...
  • 1,972
13 votes
4 answers
2k views

Draw curved path inside circle

How to draw the curved line inside the red circle in this picture : MWE \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,...
  • 1,621
13 votes
2 answers
1k views

How can I easily use the same preamble on all my documents?

I use multiple computers (Mac and PC), so creating a path (e.g. \input{c:/folder/Preamble}) won't work. I really want to assign a URL (in Dropbox) to the file and input the file via the URL, but I ...
  • 253
13 votes
1 answer
2k views

Multiple marks on a path

I want to add a multitude of marks to a single path. However, sometimes these marks are heavily misplaced. For example, the blue arrows should be a little bit ahead of the red ones. \begin{...
  • 1,525
13 votes
1 answer
2k views

highlights path sequentially BUT in order of clicking

I have been looking for a possibly difficult answer to a simple question. I would like to be able to highlight paths on a TikZ picture. I would like to highlight these paths by clicking on them and at ...
  • 1,421
13 votes
1 answer
4k views

Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT

I am upgrading from TeX Live 2018 to 2019 following https://tug.org/texlive/upgrade.html At step 8 I encounter a problem. Running sh update-tlmgr-latest.sh -- --upgrade in /usr/local/texlive/2019 ...
  • 7,063
12 votes
2 answers
6k views

Defining a new node shape for an electronic multiplexer

I found this question which suggests making a multiplexer symbol with this path: (0,0) -- (1,-0.5) -- (1,-1.25) -- (1.3,-1.25) -- (1,-1.25)-- (1,-2) -- (0,-2.5) -- (0,-1.75) -- (-0.3,-1.75) -- (0,-1....
  • 4,915
12 votes
1 answer
5k views

Reference file relative to the home directory

How can I refer to a file (e.g. in \includegraphics{}) that lives in my home directory (I am on linux)? \documentclass{article} \usepackage{graphicx} \begin{document} not working: $\sim$/foo.png %%\...
  • 511
12 votes
2 answers
2k views

"Stroke" a predefined path

I would like to use the name of a previous defined path to draw it later on in my code. I have included an example below, where I define two paths, "D1" and "S1", and then later on, draw these very ...
  • 1,457
12 votes
2 answers
6k views

How to make \include work with a quoted string path containing spaces?

In Windows, \input can work with a quoted string path containing spaces, but \include cannot. How to fix it? \documentclass{book} \begin{document} %\input works! \input{"Contents/Installing and ...
12 votes
1 answer
10k views

How to make \lstinputlisting applicable to file paths with spaces?

I am using the listings package and the path to the source code contains some spaces. For example, the path can be /some dir/sub dir/file 1.txt and \lstinputlisting{/some dir/sub dir/file 1.txt} does ...
12 votes
1 answer
482 views

How to draw a path with coordinates defined by f(x)

I'm writing about fixed point and I would like to do this image in tikz without the labels. Is there any way to define a function f such x --> x*(4-x) and a recursion \begin{tikzpicture} \draw (...
  • 823
11 votes
2 answers
4k views

Coil path decoration without straight segment

When a path is decorated in TikZ, a straight line segment might be added at the end, depending on the length of the path. This is undesirable in some cases, and a very nice versatile resolution for ...
  • 672
11 votes
3 answers
2k views

Decorate path with arrows at nodes

Standalone example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \draw[black, very thick] plot[smooth] coordinates {(4,1) (2,2) (1,3) (...
  • 325

1
2 3 4 5
9