Tag Info

New answers tagged

1

Problem solved: It was a printing error: Here is the fix: Under Ubuntu 14.04 (Linux), if you have the final pdf which latex creates for you; If you print it, after you press Crtl. + P, you have to: Page handling -> page scaling -> NO SCALING


1

Please always post usable documents including all macros defined, not just fragments. You can scale the image and text together: \documentclass{article} \usepackage{overpic,color}\def\bv{b_v} \begin{document} \begin{overpic}[scale=0.3]{example-image-a} \put(-9,69){\color{black}\vector(0,1){12}} \put(-10,82){$\hat{z}$} ...


4

It should also be noted that \resizebox has roundoff issues, and often slightly exceeds its limits. \documentclass{article} \usepackage{graphicx} \usepackage{mwe} \newlength{\testlen} \newcommand{\maxsizebox}[3]{% #1 = max h-space, #2 = max v-space, #3 = contents \settowidth{\testlen}{\resizebox{!}{#2}{#3}}% ...


3

You can avoid setting the picture width by eye; just the placement of the text needs some trials. \documentclass{article} \usepackage{pict2e,picture} \usepackage{graphicx} \newsavebox{\tempbox} \begin{document} \begin{figure} \centering \sbox{\tempbox}{\includegraphics[width=\textwidth]{example-image.pdf}} \setlength{\unitlength}{1pt}% just to be sure ...


3

So here's the solution: \scalebox{0.5}{ \begin{picture}(360,255)(0,0)% \put(0,0){\includegraphics{figures/basic_flow1.pdf}} \put(80,180){\scalebox{2}{$\phi_Q$}} \end{picture} } Just put a new scalebox around the text to undo the scaling.


2

Simply invert minipage with \scalebox, i.e. embed the minipage inside \scalebox. MWE: \documentclass{beamer} \mode<presentation> { \usetheme{CambridgeUS} \usecolortheme{dolphin} \usecolortheme{rose} \setbeamerfont*{title}{shape=\itshape, family=\rmfamily} \setbeamercovered{transparent} } \usepackage{algorithm2e} \begin{document} ...


3

As already explained here http://tex.stackexchange.com/a/218292/9335, there is probably a bug in node at used with intersections and transformation (the transformation seems to be applied twice on the intersection points). You can simply replace \node at (point) with \path (point) node, and it shoud be ok. Here is the corrected code. \documentclass[tikz, ...


4

Use % intersection points \path[name intersections={of=diag and yaxis,by={A}}]; \path[name intersections={of=diag and xaxis,by={B}}]; to define inter sections and then % fill \fill[opacity=0.1] (origin) -- (A) -- (B); Here is the full code \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} ...



Top 50 recent answers are included