New answers tagged

2

How about this? \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{arrows.meta,bending,calc} \begin{document} \begin{tikzpicture}[lbl/.style={circle,draw,inner sep=1pt},>={Latex[bend]}] \draw[dashed,thick] (0,2.5) coordinate(T) (-1,0) coordinate(BL) -- (0,0.5) coordinate(B) edge (T) -- (1,0) coordinate(BR); \draw[<-] ($(T)!0.5!(BL)$) ...


2

You can use \enlargethispage{-1cm} or something similar in order to make it so that the tcolorbox environment using /tcb/height fill sees a shorter last page: \documentclass{exam} \usepackage[fontsize = 14pt]{scrextend} \usepackage{lipsum} \usepackage[xparse,breakable]{tcolorbox} \usepackage[includefoot,foot=0mm,bottom=20mm]{geometry} \pagestyle{...


1

Basically define a macro that holds the invitation, then call the macro twice on the page. Not an MWE but to give you the idea: \documentclass{article} % other preamble stuff \newcommand{\invite}{The code for the invitation.} \begin{document} \invite \vfill % some space between the invitations \invite \end{document}


2

If you are doing that lots you might like to make a macro: vardef label_along(expr your_label, target_path, time_on_path, offset) = draw thelabel(your_label, origin) rotated angle direction time_on_path of target_path shifted (up scaled offset rotated angle direction time_on_path of target_path) shifted point time_on_path of target_path ...


1

Not sure why, but this seems to work. \documentclass[12pt]{article} \usepackage[paperwidth=297mm, paperheight=420mm,margin=0mm,noheadfoot]{geometry} \usepackage[width=35truecm,height=45truecm,cam,noinfo,center]{crop} \usepackage{flowfram} \setallstaticframes{valign=t} \newstaticframe[1]{297mm}{110mm} {0mm}{310mm}[titlearea] \...


3

Instead of label("\huge$p_2f_1$", (vzero + vtwo) * 0.5); you can use this: labeloffset := 7bp; % necessary here to avoid overlapping the arrows draw thelabel.top("\huge$p_2f_1$", .5[vzero,vtwo]) rotatedaround (.5[vzero,vtwo], angle(vzero-vtwo)); which gives:


5

You can use tikz-3dplot. In this code, you can change the value of x of the line \pgfmathsetmacro\myx{\h/2}. In your case, myx = h/2. \documentclass[border=1mm,tikz,12pt]{standalone} \usepackage{tikz-3dplot} \begin{document} \pgfmathsetmacro\th{75} \pgfmathsetmacro\az{60} \tdplotsetmaincoords{\th}{\az} \pgfmathsetmacro\a{1} \...


4

If you want a correct cone in 3d you can read this Mathematics_in_Science_Teaching The code is from Aslanbek Naziev (Ryazan State University). I adapted the code to v3.02 \documentclass{standalone} \usepackage{tkz-euclide} \begin{document} \thispagestyle{empty} \begin{tikzpicture} \tkzSetUpPoint[size=3] \begin{scope}[xscale=2] \tkzDefPoint(0,...


3

\documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw(0,0) circle (2cm and 0.5cm); \draw(2,0) -- (0,6) -- (-2,0) arc (180:360:2cm and 0.5cm); \draw(-2,0) arc (180:360:2cm and 0.5cm) -- (0,6) -- cycle; \draw[dashed](-2,0) arc (180:0:2cm and 0.5cm); \draw[dashed](2,0) -- node[below] {$2r$} (0,0); \draw(-1,3)arc (180:360:1cm and 0....


2

This is my attempt. I made liberal use of rotatedabout both because it worked nicely, and because rotations led to your question. I couldn't think of a better way to get the arrows other than: take the line connecting node centers, and chop of the portions inside (undrawn) circles around the nodes in order to get some separation between the nodes and the ...


0

For a single line and no equation number, use \displaystyle: \documentclass{standalone} \begin{document} \( \displaystyle E=mc^2 \) \end{document} For multiple lines with no equation numbers, you can abuse a tabular. \documentclass{standalone} \usepackage{array} \begin{document} \begin{tabular}{@{}>{$\displaystyle}r<{\null$}@{}>{$\displaystyle\...


2

\leftmargin is the wrong measure (helpfully...). The left margin is measured as 1 inch, plus the \oddsidemargin (which for an actual 2cm margin will be negative), so this is what you want: \documentclass{article} \usepackage[margin=2cm, a4paper, nomarginpar, hoffset=0pt]{geometry} \usepackage{showframe} \usepackage{color} \definecolor{blackgray}{rgb}{0.25,0....


Top 50 recent answers are included