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
121
votes
5answers
65k 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 ...
47
votes
1answer
13k 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 \...
41
votes
4answers
34k 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 ...
36
votes
1answer
37k 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 ...
34
votes
2answers
23k 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} \...
33
votes
4answers
48k 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{\...
31
votes
2answers
26k 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} \...
29
votes
3answers
8k 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 ...
26
votes
2answers
15k 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.
26
votes
1answer
837 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 ...
25
votes
4answers
61k 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 ...
25
votes
3answers
12k 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:...
24
votes
2answers
14k 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 ...
23
votes
1answer
15k 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 ...
21
votes
4answers
4k 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 ...
21
votes
4answers
13k views

pdflatex fails within Emacs.app, but works in terminal

LaTeX rookie here. 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. ...
20
votes
2answers
10k 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/...
20
votes
3answers
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 ...
18
votes
2answers
2k 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} ...
18
votes
1answer
6k 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 \...
16
votes
2answers
9k 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} \...
16
votes
2answers
8k 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 ...
16
votes
6answers
23k 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 ...
15
votes
3answers
149k 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 ...
15
votes
1answer
1k 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 ...
15
votes
1answer
2k 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}...
15
votes
1answer
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 ...
14
votes
5answers
2k 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 ...
14
votes
3answers
15k 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 ...
14
votes
2answers
6k 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} % ......
14
votes
2answers
38k 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. ...
14
votes
2answers
10k 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 ...
13
votes
4answers
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,...
13
votes
2answers
778 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 ...
13
votes
1answer
983 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 ...
13
votes
1answer
29k 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 ...
12
votes
3answers
1k 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 ...
12
votes
4answers
5k 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 \...
12
votes
1answer
12k 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 ...
12
votes
2answers
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
1answer
9k 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
1answer
431 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 (...
11
votes
2answers
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 ...
11
votes
3answers
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) (...
11
votes
1answer
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{...
11
votes
2answers
1k views

TikZ: How to decorate a path with the open diamond arrow tip that “bends” with the path?

I have a curved path that I want to put an open diamond arrow tip on. Here is a MWE with my best attempt: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings} \...
11
votes
1answer
2k views

assistance on good handling of text on TikZ paths

I am putting together an ornate logo using TikZ. The logo as it is currently is as follows: I request assistance on handling the lowermost outer text (which reads "UNIVERSITY OF GLASGOW"). For the ...
10
votes
1answer
650 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 ...
10
votes
1answer
1k views

Filling the arrow tip and not the path using two different colors

I have a small problem with some arrows but I can't seem to find a solution. Please note that this question is different from Setting fill color for TikZ arrow tips only (and not the path itself), ...
10
votes
1answer
537 views

Patched version of pdftex does not see what kpsewhich sees

I have TeX Live version 2013.30973-7 running on ArchLinux. I want to use a patched version of pdftex to create valid PDF/A-1b documents. I have an issue using the patched version after compilation. ...