Tag Info

Hot answers tagged

5

Almost five years after the question. With the latest versions of Metapost it is possible to change the default naming scheme for output files: the statement outputtemplate := "%j-%c.mps"; will produce, from file name.mp. files named as name-1.mps and so on. This is much preferable, because no further instruction is needed under pdflatex, which knows how ...


4

Well, that is looot of questions and I am very sleepy... \documentclass[11pt]{article} \usepackage{color} \usepackage{tikz} % for flowcharts %\usepackage[latin1]{inputenc} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \begin{document} \begin{center} \begin{tikzpicture} \begin{axis}[ width=\linewidth, ...


4

The example in the question reveals quite some show stoppers: Package graphics needs to know the file name extension and calls LaTeX's \filename@parse to split the path specification. \filename@parse expands the first token once. Thus it is possible to put the starting path in a macro. But after the expansion step, further macros or nested macros are not ...


4

Ok, let's start with the .gif from @SeanAllred comment. First Step: Converting There are probably many methods to do so. To be independent of the operation system, there are online converter, like http://gifmaker.me/exploder/ or if you prefer using the command line use convert from ImageMagick: convert -coalesce VHJmL.gif something.png Make sure you ...


4

For graphics, you can configure \graphicspath in the preamble of your document. Here is an example: \graphicspath{ {.} % document root dir {images/} {img/} {files/pictures/} {figures/} } Then, you just need to call the figure name when using \includegraphics. In addition, you can use \DeclareGraphicsExtensions{.eps} to avoid ...


3

Here is a over kill solution for you. \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \usetikzlibrary{patterns} \pgfplotsset{compat=1.12} \begin{document} \begin{table}[h] \centering \begin{tikzpicture} \begin{axis}[ extra y ticks = 2, extra y tick labels = z, extra y tick style ...


3

You can use several plotting packages, some of them very sophisticated. My package xpicture is specially designed for mathematical plottings. Try this code: \documentclass{standalone} \usepackage{xpicture} \begin{document} \newlpoly{\p}{-5}{3} % Defines y=-5+3x \renewcommand{\Pictlabelsep}{0.2} \setlength{\unitlength}{.75cm} ...


3

% !TEX TS-program = pdflatex % !TEX encoding = UTF-8 Unicode % arara: pdflatex: { synctex: true } \pdfminorversion=7 \documentclass[a4paper]{article} \usepackage{tikz,graphicx} \usetikzlibrary{positioning} \begin{document} {\centering \makebox[0pt]{% \begin{tikzpicture} [ every node/.style={ inner sep=0pt,outer ...


2

To easily get the precise relative positions (which is often quite tedious) and to generate LaTeX code automatically for such example as shown below, you could use the new web-based LaTeX Overlay Generator, which I built for such cases. This is just a small interactive tool, which helps you to find the right locations without using a manual grid-based ...


2

You can use the optional argument of the environment to specify the number of narrow lines. Here, if I counted well, it should be: \begin{wrapfigure}[21]{o}{0.31\textwidth}


2

I reduced your code a bit, but this is what you need: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usepgfplotslibrary{fillbetween} \usetikzlibrary{patterns} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture} \begin{axis}[ xmin=-1, xmax=3, ymin=-1, ymax=3, axis lines=middle, ...


2

\documentclass{article}% always use a complete document not a fragment \usepackage{graphicx} \begin{document} \begin{figure}[htp]% include p % \begin{minipage}{\textwidth} a \textwidth minipage does nothing \centering%\begin{center} % mwe package images \sbox0{\includegraphics[height=4cm]{example-image-a}% no word space ...


1

The magic number is 91=64+27: \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \newlength{\preferredwidth} \setlength{\preferredwidth}{12cm} \begin{document} \begin{figure} \centering \begin{subfigure}{\dimexpr\preferredwidth*64/91} \includegraphics[width=\linewidth]{example-image-4x3} \caption{Ratio 4:3 landscape} \end{subfigure}% ...


1

I am not sure that this code will be useful to you? \documentclass[12pt,a4paper,twoside]{standalone} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage{textcomp} \usepackage{pgfplots} \begin{document} \begin{tabular}{l l} \includegraphics[width=\textwidth]{Figure3a.png} & \includegraphics[width=\textwidth]{Figure3b.png} \\ ...


1

\documentclass{article} \usepackage{showframe} \usepackage{graphicx} \begin{document} \noindent\makebox[0pt][l]{\raisebox{-0.5\height}{\includegraphics[width = 35 mm, height = 35 mm]{example-image-a}}}% \hfil CERTIFICATE \noindent\dotfill X\dotfill \end{document} Or, with adjustbox \documentclass{article} \usepackage{showframe} ...


1

The titleline command, from the titlesecpackage allows to include horizontal material in headers. Note I used the lobster2 font only to get something similar to your image. It has to be loaded before any other font loading, as it redefines the default roman family. Also I supposed this page should be unnumbered. \documentclass[11pt,a4paper]{report} ...


1

Here's one idea with a few key settings for \includegraphics. The basic idea is \includegraphics[ keepaspectratio, height=\textwidth, width=\dimexpr\textheight-2\baselineskip\relax, angle=90, ]{image-a} where keepaspectratio prevents the figure from being distorted even though both height and width are specified, height=\textwidth sets the ...


1

With regular dots. \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing,patterns} %\usepackage{xcolor,pict2e}% to allow any radius \tikzset{pics/myarc/.style args={inner #1 and outer #2 with fill #3}{ code={ \draw[very thick, #1] (1,0) arc (0:90:1cm); \draw[very thick] (0,1) -- (0,2); \draw[very thick, #2] ...


1

If instead of a node you accept a non automatically drawn line ... \documnentclass{article} \usepackage{tikz} \usetikzlibrary{fit,chains, calc} \begin{document} \begin{tikzpicture}[node distance=2cm] \node(s1) {$y_1$}; \node(s2) [right of = s1] {$y_2$}; \node(s3) [right of = s2]{$y_{3}$}; \node(s4) [right of = s3]{$y_4$}; \node(s5) [right of ...


1

How to convert: convert -coalesce something.gif something.png How to get an embedded looping animation: \documentclass{beamer} \usepackage{animate} \begin{document} \begin{frame}{Embedded Animation} \animategraphics[loop,controls,width=\linewidth]{12}{something-}{0}{16} \end{frame} \end{document}



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