New answers tagged

1

It's wrong to use center to begin with. In the following example I used the PDF for another answer; in the second page I added the same heading, in order to see that they're typeset in the same way. \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[brazilian]{babel} ...


1

As previously answered, Texmaker does not seem to reference labels declared in included files in the structure of the document. A workaround that you can use, however, is to use the way Texmaker detects existing labels to trick it into thinking that you are declaring a label inside your document when you are, in fact, not. Let me explain by reusing your ...


3

A proof of concept, as details are missing from the question. The \tarassinput command inputs the file only if the first line agrees with the second argument. \begin{filecontents*}{typea.tex} % type A here latex stuff \end{filecontents*} \begin{filecontents*}{typeb.tex} % type B here latex stuff \end{filecontents*} \documentclass{article} \makeatletter ...


2

Here is a different way than specifying the path explictly, \graphicspath sets it stuff locally, so we can do \documentclass[a4paper]{memoir} \usepackage{graphicx} \newenvironment{localgraphicspath}[1]{ \graphicspath{#1} }{} \begin{document} \begin{localgraphicspath}{{A/}} \includegraphics{test} \end{localgraphicspath} ...



Top 50 recent answers are included