New answers tagged

1 vote
Accepted

Aligning xilene isomeri with chemfig

You can use chemfig only. The nvisible bonds adjust the molecule position. \documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \usepackage{...
user avatar
  • 1,270
3 votes

tikz: draw arc between two specific points

\documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \usepackage{tikz} \usetikzlibrary{arrows.meta,shapes,positioning,intersections,quotes,...
user avatar
2 votes
Accepted

tikz: draw arc between two specific points

Here are some different arcs: \documentclass[tikz, border=1cm]{standalone} \begin{document} \begin{tikzpicture} \draw[yshift=0cm] (1,0) to [bend right=45] (5,0); \draw[yshift=2cm] (1,0) to [bend ...
user avatar
2 votes

tikz: fit rectangle to content and rectangle nodes

For nodes positioning I would use positioning library and define anchors for nodes. For nodes I suggest to use common defined style (without definition of minimum node size) with parameter for colors: ...
user avatar
  • 250k
1 vote

tikz: fit rectangle to content and rectangle nodes

Not the best solution but at least one possibility: \documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \usepackage{tikz} \usetikzlibrary{...
user avatar
  • 240
0 votes

How to control image to be at proper position in 2 column documents?

I will propose a solution, which you probably will not like. The journal has this class and very likely, this is an intended behavior to arrange different articles in the journal more easily. If you ...
user avatar
  • 2,069
0 votes
Accepted

CV symbol position alignment problem

Try this code for \cveventtt using parboxes. Adjust the relative size of the parboxes to your liking. \newcommand{\cveventtt}[4]{% {\large\color{emphasis}#1\par} \smallskip\normalsize \...
user avatar
  • 24.4k
3 votes
Accepted

How to position multiple objects inside a fbox by relative X/Y position

Picture mode isn't just for technical drawing \documentclass{article} \begin{document} \fbox{\begin{picture}(10cm,7cm) \put(2cm,1cm){this} \put(8cm,5cm){that} \put(5cm,6cm){3rd} \end{picture}} \end{...
user avatar
1 vote

How to fix the number lines to to fit on the page

Its is better to add a blank line to start a new paragraph instead of \\. I added several and changed many of the tikzpicture to \begin{tikzpicture}[scale = 2] and moved then outside of example. So ...
user avatar
  • 24.4k
4 votes
Accepted

Footnote rule y position

This modifies \footnoterule to add a tikzmark to the left. The actual line is 3pt-2.6pt above the baseline. You might also look at \iftikzmark, but that shouldn't be an issue in this case. \...
user avatar
  • 69.4k
1 vote
Accepted

backgroundsetup is not working when using another tikzpicture

I guess this is what you wanted: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{mwe} %%%%%%%%%%%%%%%%%%%%%%%%%%...
user avatar
  • 1,278
3 votes

Adjusting the starting coordinates of an arrow precisely inside a TikZ node

With use of the chains library and define arrows start position by perpendicular coordinate systems: \documentclass[border=3.141592,tikz]{standalone} \usetikzlibrary{arrows.meta, ...
user avatar
  • 250k
1 vote

Adjusting the starting coordinates of an arrow precisely inside a TikZ node

This should help you reach your goal: \documentclass[tikz]{standalone} \usetikzlibrary{arrows.meta} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{shapes.multipart} \begin{...
user avatar
  • 11
2 votes

Aligning and positioning the node contents inside a table made of TikZ matrix

You should not have minimum height smaller from "font height + inner ysep". In the case that nodes content are only numbers (and not letters), you can use the following style for matrix ...
user avatar
  • 250k
1 vote
Accepted

Aligning and positioning the node contents inside a table made of TikZ matrix

I'm not sure about differences between desired and achieved results, but a simplified version with TiKZ could be: \documentclass[a4paper,openany,14pt]{extbook}%extbook \usepackage{tikz} \...
user avatar
  • 127k
1 vote

Aligning and positioning the node contents inside a table made of TikZ matrix

Do you really need tikz here? If not, this should solve your problem: \documentclass[a4paper,openany,14pt]{extbook}%extbook \begin{document} \begin{tabular}{p{1.5cm}|c|p{1cm}|} \cline{2-3}...
user avatar
  • 131
7 votes
Accepted

tikz: How can I find the value of `current page.north west`?

According to tikz document P.260: https://ctan.mirror.globo.tech/graphics/pgf/base/doc/pgfmanual.pdf The current page is a predefined node in tikz. This node can be used to access the current page. It ...
user avatar
  • 1,278
0 votes

Image from \includegraphics showing up in wrong location?

For those who use XeLaTex, it's better to use \usepackage{float} and use [H] as an option for a figure.
user avatar
7 votes
Accepted

Figure placement after first time referenced in text

The base latex release includes the flafter package that ensures floats never float "back" to the top of the current page before their definition in the source. So you just need to place the ...
user avatar
1 vote

Figure placement after first time referenced in text

so what I did in my Thesis is that I wrote my text, then reference it with \ref{fig:foo} and then placed my figure with \begin{figure}[h!] \includegraphics{foo.png} \label{fig:foo} \end{figure} ...
user avatar
  • 109

Top 50 recent answers are included