Tag Info

New answers tagged

7

Interesting. Not seen that before, I'd work around it as follows but we should probably make it not do that (not sure if it's graphics or pdftex.def at present) \documentclass{article} \usepackage{graphicx,fancyhdr} \newbox\zzz \sbox\zzz{\includegraphics[height=2cm]{example-image-a}} \fancypagestyle{xxx}{\fancyhead[C]{\usebox\zzz}} ...


2

It's not really clear what your aim is, but this could be what you're looking for. File summaryfile.tex (containing all summaries) \begin{summary}{notthisone} Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah \end{summary} \begin{summary}{test-summary} This is the summary we want to ...


1

Ok I get the fix : I just need to replace \lstinputlisting[language=Bash, morestring{[b]'}]{test.sh} By \lstinputlisting{test.sh} The redundancy of listings options was the problem here I guess ;)


2

Single/double column detection LaTeX maintains a switch \if@twocolumn for the status of two column mode. An example for the detection of the column mode with restoring the previous setting can be found in the definition for the index, e.g. article.cls: \newenvironment{theindex}{% \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi ...


0

All the solutions to this kind of problems that I have seen until now have recourse to shell scripts or temporary files created with \write18 and subsequently \input(ted). But it may be worth noting that it is also possible to use pipes instead of temporary files. Actually, I am not sure that the “piped input” feature works with \openin, as well as with ...


2

If I fix the unrelated errors in your example (missing files and unescaped _ in headings) then as expected there are no page breaks between the headings: \documentclass[a4paper,11pt,titlepage]{article} \title{...} \author{...} %%Packages \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage{float} \usepackage{caption} %%Commands ...


1

Compile your original Tikz pictures using the standalone document class. Then in your main file, add \usepackage{standalone} and then write \input{<tikzpicture name>.tex}; assuming they are located in the same folder, you won't need a path. If you want it to appear where you have included it, then enclose it in a figure environment like: ...



Top 50 recent answers are included