Tag Info

Hot answers tagged

5

The package tikzscale delays its redefinition of \includegraphics at begin document, so you should do \AtBeginDocument{% \renewcommand{\includegraphics}[2][]{% \setlength{\fboxsep}{-\fboxrule}% \framebox{\rule{0pt}{0.6\linewidth}\rule{\linewidth}{0pt}}% }% } as well.


3

Here is a suggestion using scrlayer-scrpage instead fancyhdr. Then you can define two new layers: one for odd and one for even pages. These layers can be added to the pagestyle scrheadings. So the images will not be on chapter pages because they are using the page style plain. \documentclass[a4paper,twoside]{report} \usepackage[T1]{fontenc} ...


2

Package preview was written for this purpose (to generate PNG images to be included in the emacs editor). \documentclass{article} \usepackage{chemfig} % A fixed `\chemname`, which takes the width of the name into account \newcommand*{\ChemName}[2]{% \begingroup \sbox0{#1}% \sbox2{#2}% \ifdim\wd2>\wd0 % \leavevmode \hbox to ...


2

Closest i can come up with just looking at the picture. \documentclass{article} \usepackage{geometry} \geometry{top=0cm,a4paper,left=3cm,right=2cm,bottom=1.5cm} \usepackage{graphicx} \usepackage{scrextend} \usepackage{tgadventor} \begin{document} \begin{titlepage} \sffamily \vspace*{.5cm} \begin{addmargin}[0cm]{-2cm} ...


1

I would use the package adjustbox here. Please note the option valign=t I added to each image: % arara: pdflatex \documentclass[headsepline]{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \PassOptionsToPackage{demo}{graphicx} % you can remove this. \usepackage[export]{adjustbox} \usepackage{tikz} \usetikzlibrary{positioning} ...


1

To build on David Carlisle's comment, there's a judgement call to make for plots with PNG (raster) vs PDF (vector). If you have a scatter plot with thousands of data points for example, there comes a point where vector graphics can make the resulting PDF document (alone or compiled into a LaTeX-produced document) large, slow and unresponsive. In such cases I ...


1

Option trim together with clip help: \documentclass[a4paper,varwidth]{standalone} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \thispagestyle{empty} \begin{document} \begin{figure} \begin{subfigure}{.33\textwidth} \includegraphics[width=\linewidth]{uxfea.eps} \end{subfigure} \begin{subfigure}{.33\textwidth} ...


1

Make a very minimal tex-file in which just the chemfig code is. % this is file isobutylChloride \chemfig{CH_3-CH(-[2]CH_3)-CH_2-Cl} \endinput Now, input that file in a standalone document and compile it with the -shell-escape flag. A png file will be created on the fly, a conversion program is needed to be installed, though. ...



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