Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [paths]

{paths} is for installation issues related to problems stemming from broken paths to the (La)TeX executable files. These executable files are stored in the 'bin' directory of the TeX distribution on any platform. After having installed a TeX distribution, it is important to have the path for the 'bin' directory set correctly.

Filter by
Sorted by
Tagged with
136 votes
7 answers
89k 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 ...
Display Name's user avatar
65 votes
2 answers
20k 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 \...
Rovin Bhandari's user avatar
51 votes
1 answer
60k 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 ...
Didac Busquets's user avatar
49 votes
4 answers
74k 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{\...
student's user avatar
  • 29.2k
46 votes
4 answers
37k 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 ...
Johan's user avatar
  • 2,204
43 votes
2 answers
34k 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} \...
Sigmun's user avatar
  • 1,121
38 votes
2 answers
49k 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} \...
wdg's user avatar
  • 749
36 votes
4 answers
20k 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:...
digital-Ink's user avatar
  • 3,083
33 votes
2 answers
25k 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 ...
SBF's user avatar
  • 1,418
32 votes
1 answer
21k 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 ...
Brato's user avatar
  • 443
32 votes
1 answer
3k 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 ...
Lone Learner's user avatar
  • 3,246
31 votes
2 answers
24k 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.
nebffa's user avatar
  • 873
30 votes
3 answers
10k 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 ...
Alex Frechette's user avatar
30 votes
6 answers
75k 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 ...
user avatar
27 votes
3 answers
17k 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 ...
orome's user avatar
  • 10.5k
26 votes
2 answers
9k 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 \...
adn's user avatar
  • 11.3k
25 votes
2 answers
13k 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} \...
larkee's user avatar
  • 683
25 votes
4 answers
16k 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 ...
idclark's user avatar
  • 591
24 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 ...
Ben Lerner's user avatar
  • 7,082
22 votes
2 answers
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}...
hpekristiansen's user avatar
21 votes
3 answers
6k 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 ...
doctorate's user avatar
  • 4,173
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/...
digEmAll's user avatar
  • 547
20 votes
3 answers
4k 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} ...
Alan Turing's user avatar
20 votes
3 answers
190k 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 ...
Daniel Robert-Nicoud's user avatar
18 votes
2 answers
52k 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. ...
ptrcao's user avatar
  • 6,613
17 votes
4 answers
8k 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 \...
flow's user avatar
  • 1,783
16 votes
6 answers
26k 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 ...
ptrcao's user avatar
  • 6,613
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 ...
AndyS's user avatar
  • 702
16 votes
1 answer
33k 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 ...
keflavich's user avatar
  • 4,613
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 ...
Andrey Popov's user avatar
16 votes
1 answer
6k 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 ...
Viesturs's user avatar
  • 7,965
15 votes
2 answers
11k 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 ...
Ryan's user avatar
  • 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 ...
Yemon Choi's user avatar
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 ...
David's user avatar
  • 1,575
14 votes
1 answer
790 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 ...
julkarham's user avatar
  • 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 ...
orome's user avatar
  • 10.5k
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} % ......
Dave Jarvis's user avatar
  • 11.9k
14 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 ...
AndyS's user avatar
  • 702
14 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{...
David's user avatar
  • 1,575
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 ...
superbriggs's user avatar
  • 2,052
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,...
Hunsu's user avatar
  • 1,731
13 votes
1 answer
6k 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 %%\...
Andreas's user avatar
  • 521
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 ...
Charlie's user avatar
  • 253
13 votes
1 answer
11k 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 ...
Display Name's user avatar
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 ...
jejuba's user avatar
  • 1,471
12 votes
3 answers
29k views

%!TEX root = to parent directory

Currently, I am writing a large report. In my previous ones, I always had the chapters and the main file (thesis.tex) in the same directory as the individual chapters. This time, however, I created a ...
ribrob710's user avatar
  • 121
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....
Keelan's user avatar
  • 5,425
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 ...
profj's user avatar
  • 1,529
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 ...
Display Name's user avatar
12 votes
1 answer
492 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 (...
L F's user avatar
  • 851

1
2 3 4 5
10