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

learn more… | top users | synonyms

69
votes
3answers
28k 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 ...
32
votes
4answers
27k 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
votes
1answer
5k views

Quickest way of applying thesis to tex template

I am trying to apply my thesis to a TeX template. I have pdflatex installed on a Linux box (in my university), but cannot get it to work. When I point to my TeX file as below, it gives an error: ...
16
votes
2answers
1k 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} ...
12
votes
1answer
1k 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}...
29
votes
3answers
6k 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 ...
18
votes
4answers
2k 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 ...
16
votes
4answers
33k 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 ...
19
votes
3answers
6k 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. ...
8
votes
1answer
3k views

kpsewhich: command not found. on tlmgr update, MacTex install [closed]

I tried to update the tlmgr with TexLive-Utility and it fails to find kpsewhich. I'm not sure why though, because it is in my bash PATH $which kpsewhich /usr/texbin/kpsewhich Not only that, it is ...
5
votes
1answer
548 views

Define path for packages in the LaTeX file (analog of \input@path or \graphicspath for \usepackage)

How to specify path for additional packages in the LaTeX file itself? For graphics, you use \graphicspath{{a}{b}}, and then \includegraphics{file} finds b/file.pdf. EDIT: it should be \graphicspath{{...
15
votes
2answers
6k 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 ...
11
votes
2answers
4k 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 ...
11
votes
1answer
787 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 ...
14
votes
1answer
1k 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 ...
10
votes
1answer
20k 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 files, to make them available to all my .tex files? How to have local package overide default package LaTeX ...
19
votes
1answer
4k 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 \...
2
votes
2answers
70 views

File Path with Symbol Causes Error

I foolishly included a # (number symbol) in a file path. Whenever I reference this it generates the following error: Illegal parameter number in definition of \reserved@a. [.../Paper#1/2016-02-14/...
8
votes
2answers
20k views

Commands paths in TeXstudio on Mac OS X - with 'could not start the command' error

When I am trying to 'quick build' my document in TeXstudio 2.1 on Mac OS X 10.6.8, I am getting and error: could not start the command (with 'quick build' options being LaTeX + DviPdf + PdfViewer). I ...
4
votes
1answer
1k views

Referencing bib files with spaces in the filename

I am using a Mac with TeX Live and Mendeley for automatically generating .bib files, some of which have spaces in the file names. I would like to know how to reference such files from LaTeX as using ""...
17
votes
4answers
9k 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. ...
11
votes
3answers
11k 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 ...
15
votes
2answers
9k 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 ...
9
votes
1answer
851 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), ...
13
votes
2answers
4k 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
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 ...
7
votes
3answers
57k 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 ...
10
votes
3answers
1k 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) (...
6
votes
2answers
1k 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 ...
21
votes
1answer
11k 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} \...
6
votes
1answer
454 views

Pass options to the scope that is internally created by preaction

In the reply to this question on shadows, it was suggested to use the backgrounds library so that the shadow of one object doesn't overlap another object drawn previously. If I understand the ...
6
votes
1answer
902 views

Extract coordinates from 3D point

How do I extract coordinates from a three-dimensional point defined when using tikz-3dplot? I would like to perform some calculations on these (more specifically a cross-product of two vectors), but ...
2
votes
1answer
1k views

How can I put a white-space in the Path to .bib while compiling BibTex ?

I have a white-space in the Path to my .bib ... The Path is : /Users/Alji/Google Drive/Recherche/Papers/LibraryBibDesk.bib When I compile BibTex I get the following error when I compile BibTex : ...
10
votes
1answer
7k 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 ...
7
votes
2answers
745 views

Using \nameref within \path

Background Looking to apply a consistent style to file and directory names. The book's appendix has a subsection for every file referenced by the book. Every subsection has a label whose value is ...
7
votes
2answers
694 views

TikZ: Bug with multiple decorations “at position 1”?

If I try to put two decorations on the same path, both at position 1, only the first shows up: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings} \begin{document} ...
5
votes
3answers
700 views

How to scale and clip a path at the same time?

Again, i started a question here, and i found the solution. But i think this method maybe useful for others. The problem: i exported the TikZ code of one path from Inkscape; then, i wanted to use it ...
3
votes
2answers
529 views

Expand directory names using nested macro definitions

Background Would like to use values from macros that reference other macros (n-levels deep) and apply their values to the \path command. Problem (Scenario A) The following works: \usepackage{url} ...
2
votes
3answers
510 views

Closing a path with a “to” curve

The "oval" path in too sharp as you can see in the intersection with the horizontal line. How can i fix this problem? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}...
16
votes
1answer
15k 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 ...
13
votes
4answers
1k 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,...
4
votes
2answers
5k 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 ...
12
votes
3answers
768 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 ...
8
votes
1answer
3k views

How can I get the actual relative path using \import and \subimport?

I have structured my PDFLaTeX document in folders. Inside them there are .tex files, .PDF figure files. And all works using \import and \subimport commands from the Import package: Main/ |-- main....
2
votes
1answer
8k views

Setting environment variables for latex and bibtex in .bashrc [duplicate]

Possible Duplicate: .bib library file in a different directory, how to use? (Mendeley centralised .bib file) I recently started using TeX to write journal articles. I use TeX Live version 2009-...
16
votes
3answers
3k 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 ...
15
votes
2answers
6k 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.
13
votes
1answer
6k 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
1answer
483 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 ...
11
votes
1answer
342 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. ...