# Tag Info

19

I would recommend you use a command line option to specify the column type. So the MWE below with either of these two: pdflatex doc.tex or pdflatex "\def\ColumnType{onecolumn}\input{doc.tex}" will produce a single column layout, but with pdflatex "\def\ColumnType{twocolumn}\input{doc.tex}" will produce a two column output. Code: \ifdefined\...

11

The arara automation tool can help to automate the idea given by Peter Grill in his answer. You simply save the following arara rule, onetwocolumns.yaml, into a directory where arara knows to find it, and then you can run arara myfile on the following file, and you'll receive two pdfs: myfileONECOLUMN.pdf myfileTWOCOLUMN.pdf The arara directives are ...

10

\input only needs read permission, but \include writes an aux file for each included file, so it needs write permission.

8

You can enable the advanced option: Advanced Editor -> Structure Panel -> Keep Indentation of includes in structure tree However, personally, I would follow Stafford Willams suggestion to put the sections into the associated files. Subsections will be there anyway.

8

1) Have the `main.tex' as the active window in TeXMaker. 2) Select from the top menu bar, Options, and then Make Current Document the Master Document 3) Then just compile with any window active and your main document will compile CAUTION: This choice remains in effect until it is reversed at the place as 2). This means if you open a new file and ...

7

One can have independent TOCs without using any package, we need just to add in the main file \tableofcontents \let\tableofcontents\relax With packages Here are examples of how one can use packages 1- tableof. (edited) : With the two lines approach above, one can compile separately each included sub-file, and it will have its own TOC. And the main file ...

7

As @HarishKumar suggests, the combine package does the job. Here's a working example. Here is the wrapper document, copied nearly verbatim from the package documentation at http://tug.ctan.org/tex-archive/macros/latex/contrib/combine/combine.pdf . Compile it multiple times to get the table of contents correct. \documentclass[12pt]{combine} \title{...

6

The problem here is that if you do not specify any files on latexmk's command line, it will, by default, try to compile all the tex files in the current directory. But if some of the files are input by others instead of being compilable by themselves, there will be errors, as the OP found. The simplest work-around is, as observed in the question, to put ...

6

You don't seem to need to label the subcaptions, so a simple strategy will work; should the need of numbering the subcaptions, using a specific command will allow to easily modify its behavior. \documentclass{article} \usepackage{graphicx} \newcommand{\column}[2]{% % #1 = column of images % #2 = caption \begin{tabular}[b]{@{}c@{}}#1\\#2\end{tabular}% ...

6

Page labels are added as array in the /Catalog of the PDF file. Since the PDF file is generated by ghostscript, it can be set by the pdfmark operator in a PostScript file and added to the input files for ghostscript, for example: gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -sOutputFile=combined.pdf pagelabels.ps file1.pdf file2.pdf file3.pdf File pagelabels.ps: ...

5

You can draw arbitrary code on your pages, e.g.: \documentclass{article} \usepackage{pdfpages,tikz} \begin{document} \includepdf[ duplicatepages=4, nup=1x2, landscape, pagecommand={\thispagestyle{empty}% \tikz[overlay,remember picture] \draw[red,dashed,line width=10pt](current page.east)--(current page.west);} ]{example-image-...

5

tex1.tex being the paper, upon which bibtex is run should look like a normal document. \documentclass{article} \begin{document} I'm citing~\cite{cite2} first and then~\cite{cite1} % I could also manually write the bibitems here \bibliographystyle{unsrt} \bibliography{tex1_biblio} \end{document} tex2.tex can then make use of the xcite package to use the ...

5

By using tikz-matrix, i have shown here 6 images in a row but you can extend it to ten images. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,positioning} \begin{document} \begin{center} \begin{tikzpicture} \matrix (M)[matrix of math nodes,left delimiter={(},right delimiter={)}] { \...

5

After the first invocation, \stop is called and the execution is stopped. Therefore no additional documents are generated. But how can we fix the code? We still need the documentclass and a way to split the line into its fields: \documentclass{article} \def\chopline#1;#2;#3 \\{ \def\name{#1} \def\vorname{#2} \def\punkte{#3} } Now there are two cases: ...

4

A workaround in Texmaker is to use File -> Session -> Save Session rather than plainly saving the files upon closing the program. It will ask you to define a name and location for the Session-file, called .tks. Make sure you associate the file-type .tks with Texmaker in case your OS doesn't recognize it automatically. Next time you want to work on this ...

4

kile --new will create a new instance of kile in a new window.

4

Don't mention the filename extension .bib in the argument of \bibliography. The instruction should be \bibliography{dissbib} rather than \bibliography{dissbib.bib}.

4

\endinput stops at the end of the line. Therefore if you have something like a \hspace after the \endinput it will be inserted: \documentclass{article} \usepackage{filecontents} \setlength{\parindent}{0em} \setlength{\parskip}{.6em} \begin{filecontents}{hello.tex} hello\endinput\hspace{1cm} \end{filecontents} \begin{filecontents}{hello-world.tex} hello \...

4

It is easy with floatrow, and its (sub)floatrow environments: \documentclass[11pt]{article} \usepackage{geometry} \usepackage{caption, subcaption} \usepackage{lipsum} \usepackage{graphicx} \usepackage{floatrow} \DeclareFloatVCode{rowvsep}{\leavevmode} \renewcommand\captionskip{6pt} \begin{document} \lipsum[1] \begin{figure}[!htb] \setlength\columnsep{...

4

There is nothing special about tables, it's possible to have a file (say mytables.sty) in which each table is defined to be a command say \mytableA,\mytableB etc (just surround the normal table markup by \newcommand\mytableB{....} Then you can use \usepackage{mytables} and \mytableB in any document that needs \myTableB. But if there are a lot of tables in ...

3

This outlines the touhami: firstly the basic functionality of the main about \let\relax while the last parts demonstrate the subfiles pkg and TOC pkgs separately. Main The \tableofcontents prints the tableofcontents to the whole document. The \let\tableofcontents\relax works like pointing to /dev/null with lazy evaluation, "at the point of definition" and ...

3

Applying "divide and conquer" approach to your project -- by splitting your project into several smaller input files -- is a good practice. In addition to this, it will be better if you can compile each smaller input file so you can see the result on which you focus. Compiling each smaller input file, of course, takes shorter time compared to compiling the ...

3

In order to selectively include parts of your document and still get page numbers and table of contents right, you can use \include and \includeonly. Your main file should look like this: \documentclass{whatever} % put preamble here % \includeonly{mult} % \includeonly{div} % \includeonly{mult,div} \begin{document} \tableofcontents \include{mult} \include{...

3

If you need the same layout of seven pictures over and over again for part1 to partN and assuming the pictures in each of the /gfx/partx/ folders are called pic1 to pic7, the below code should give you an idea of a definition of a new command to help you out. Note: I have omitted label and caption from all but the first subfigure, but they may of course be ...

3

My original suggestion was to merge all the data files into one. \documentclass[varwidth]{standalone} % *** PACKAGES *** \usepackage{standalone} % Pour les stand-alone \usepackage[usenames,dvipsnames]{xcolor} % 68 dvips colors à déclarer avant tikz \usepackage{tikz} % Pour les figure Tikz \usepackage{pgfplots} % Pour tracer les courbes à partir de fichiers ...

3

I think it's easier to concatenate externally, either on the commandline or here usimg pdflatex --shell-escape to allow latex to call out to the paste command: I modified the 2nd csv file not to be a copy of the 1st, to check the correct data is being used. \documentclass[]{article} \usepackage{longtable} \usepackage{csvsimple} \usepackage{filecontents} ...

3

Here's a sample document to get you started. I've used titlesec to format the chapter headings and the appendix package to make use of its {subappendices} environment. The reason your chapters are mislabeled is that the default \appendix command turns \chapter level headings into appendices. Since you want per chapter appendices you need to make appendices ...

3

Why not use the crop package to produce bleed marks, and then render multiple pages on a single larger page (4 in 1 shown below). \documentclass[a4paper]{article} \usepackage[cam,cross]{crop} \usepackage{pgfpages} \pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm] \newcounter{pn}\setcounter{pn}{1} \newcommand\page{\section{Page \thepn}\stepcounter{pn}\...

3

Beside using class options you can also reset the layout values to one expected by standalone after using the KOMA-keys: \RequirePackage{luatex85} \documentclass[ tikz, border=0cm, class=scrbook, ]{standalone} \usetikzlibrary{backgrounds} \pagecolor{lightgray} \KOMAoptions{ paper=a4, fontsize=10pt, BCOR=10mm, % twoside, % DIV=14, % ...

3

You need to save the page counter before the letter, and then restore it with \AtBeginLetter because KOMA-Script otherwise resets it when the letter starts. If you want the page number to print on the first page of the letter, you also need to provide a suitable \thispagestyle{} after the opening of the letter, because KOMA-Script at that point sets it to ...

Only top voted, non community-wiki answers of a minimum length are eligible