Tag Info

New answers tagged

2

An other solution (easiest) is given by Ali Mehrizi in this post. The solution is based on the import package, using the subimport command: \subimport{PathToFolder/}{File.tex}. A later \input{} into the "File" will search for a file into the specified folder PathToFolder/.


3

Rather than \input{./src/ex.tex} It'd usually better to do \input{ex.tex} then use (from anywhere) TEXINPUTS=$HOME/tmp/relative-paths-mwe//:$TEXINPUTS: pdflatex mwe It isn't really that relative paths are resolved against the current working directory but rather they are resolved against the directories in TEXINPUTS (whether specified as an ...


3

\documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture} \draw[yellow!80!black,ultra thick,-latex] (90:4cm)--+(-5mm,0)--+(45mm,0); \foreach\x[evaluate=\x as \xi using 2.5*\x] in {0,4,...,40} \draw[blue!\xi!red,shorten >=\x mm] (0,0)++(0:4cm) arc (0:90:4cm); \end{tikzpicture} \begin{tikzpicture} \node[text width=2.6cm,above] (a) {A ...


5

Yes, it is ;-) Try something and when you are stuck, ask for specific help. Good people from the community will help. \documentclass[tikz]{standalone} \usetikzlibrary{shapes} \begin{document} \xdef\Rad{2} \newcommand{\ARW}[2][]{% \foreach \ang in {#2}{% \draw[#1] (\ang:\Rad)--(\ang+1:\Rad) ; } } \begin{tikzpicture}[>=stealth] ...


3

\documentclass[tikz,10pt]{standalone} \usetikzlibrary{calc} \pgfkeys{/tikz/.cd, MarkAngleDim/.store in=\MarkAngleDim, MarkAngleDim=0.5, MarkDim/.store in=\MarkDim, MarkDim=2, } \newcommand{\MarkAngle}[3][]{% \foreach \Bn/\An/\Cn in {#2} {% \pgfmathanglebetweenpoints% {\pgfpointanchor{\An}{center}}% ...


7

The listings package provides a key called inputpath for specifying a path where \lstinputlisting should search for source files. Note that inputpath is only documented in the listings developer's guide, not in the user manual; if you haven't compiled the developer's guide, searching for "inputpath" in listings.dtx will lead you to the definition of the ...



Top 50 recent answers are included