# Tag Info

4

It sounds like you're trying to do something I've been messing around with for awhile: Push SAGE results into LaTeX and get better looking output. My answer here does this for the Cantor function, plotting primes, 3D plots, and here. Search the site for sagetex for more examples. The link mentioned by js bibra above shows some of how it can be done with ...

3

Here is an example of what you can achieve with TikZ. It is not optimal, but you can play with perspective or coordinates to fine tune the result: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usetikzlibrary{calc} \usetikzlibrary{3d} \begin{document} \begin{tikzpicture} \draw (0, 0, 0) -- (...

3

The correct loading order is \documentclass{article} \usepackage{graphicx} \graphicspath{{graphics/}} \begin{document} Hello \end{document} The last .log in the question shows (./graphics.sty Package: graphics 2020-06-04 Load graphics packages and defines colors suggesting that you have a local file called graphics.sty that gets loaded instead of – and ...

2

For true three-dimensional drawing, you could look at Asymptote, but you can get quite good fake-3d with plain Metapost, which is what I have shown here. This is wrapped up in the luamplib package, so you need to compile it with lualatex. I've included comments to explain what each part does, and you can find full details in the introductions and manuals ...

2

You can slightly change \cleardoublepage and use the background package. \documentclass{book} \usepackage[pages=some]{background} \usepackage{graphicx,lipsum} \makeatletter \renewcommand{\cleardoublepage}{% \clearpage \if@twoside \ifodd\c@page \else \hbox{}% \thispagestyle{empty}% \backgroundsetup{ contents=\...

2

If you want to change the background image for a group (1 or more) of slides, then before that group, set % image from https://tranhtreophongkhachdep.com/200-mau-tranh-phong-canh-dep-nui-rung-tay-bac/ \setbeamertemplate{background}{ \tikz\node[opacity=.5,yscale=1.5,inner sep=0]{\includegraphics[width=\paperwidth]{luavang}};} (let play with some options of ...

2

Your code does not work because your loop is considering (360/16) = 22.5 degrees in (90-\n*22.5:2cm) and (90-\n*22.5:10pt). If you want to get something more flexible, you should do something like 360/n, with n as an arbitrary number. PGF/TikZ offers you \pgfmathsetmacro which allows you, roughly speaking, to do math calculator evaluations, so you can divide ...

2

Adapting this MWE (adapted from this Simple speech bubbles, arrows or balloon like shapes in beamer) and using the math enviroment \ensuremath \documentclass[12pt]{article} \usepackage{amsmath,amssymb} \usepackage{tikz} \usetikzlibrary{calc,shapes.callouts} \newcommand{\clouds}[2]{ \tikz[remember picture,baseline]{\node[anchor=base,inner sep=0,outer ...

2

Probably the following gets closer to the desired output. (Lines indicate margins): \documentclass{scrreprt} \usepackage{caption} \usepackage{graphicx} \usepackage{showframe} \usepackage{lipsum} \usepackage[export]{adjustbox} %for the valign=t option \begin{document} \noindent \begin{minipage}[t]{0.38\textwidth} \lipsum[2] \end{minipage} \hfill \begin{...

1

Use adjustbox package to achieve this. \usepackage[export]{adjustbox} % graphicx is also included Then set both max width and max height whenever using includegraphics. \includegraphics[max height=\textheight,max width=\textwidth]{image} This maintains the aspect ratio and adjusts either height or width to the set parameters (\textheight and \textwidth in ...

1

paracol is a good choice. \documentclass{scrreprt} \usepackage{caption} \usepackage{mwe} \usepackage{paracol} \begin{document} \begin{paracol}{2} \lipsum[2] \switchcolumn \includegraphics[height=10cm]{example-image-9x16} \captionof{figure}{Caption\\Long Caption} \switchcolumn* \lipsum[3] \switchcolumn \includegraphics[height=5cm]{example-...

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