Text Formatting ⇒ Issue with aligning of words in chemfig environement
-
- Posts: 6
- Joined: Tue Jun 04, 2019 9:05 pm
Issue with aligning of words in chemfig environement
I use \chemfig package for printing arrow with some text/graph above/below. When I write a word that has: j, y, p, g, q it is aligned with this local letter - and I would like words to be globally equated, is there any solution? There is no problem in the text as far.
Code for an example:
\schemestart
\textbf{Mesh}\arrow{->}[0, 0.5]\textbf{Import Mesh}\arrow{->}[0, 0.2]\textbf{ICEM CFD}
\schemestop \newline
All "Import Mesh" is a bit higher then the rest. Could some one help me with this?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Issue with aligning of words in chemfig environement
-
- Posts: 6
- Joined: Tue Jun 04, 2019 9:05 pm
Issue with aligning of words in chemfig environement
\documentclass[a4paper,11pt]{report}
\linespread{1.5} % interlinia
\usepackage{latexsym}
\usepackage[justification=centerlast,font=small]{caption}%do podpisów rysunków i tabel
\usepackage{microtype}
\usepackage{ulem}
\usepackage[OT4]{fontenc} %T1 lub OT4
\usepackage[polish]{babel}
\usepackage[utf8]{inputenc}
%\usepackage{amssymb}
\usepackage{graphicx} % for improved inclusion of graphics
\usepackage{epstopdf}
\usepackage{indentfirst} % wstawia wciecie w pierwszym akapicie rozdziału
\newcommand{\graph}{\includegraphics[scale=0.02]{example-image}}
\usepackage{paralist}
\usepackage{lipsum}
\usepackage{chemfig}
\begin{document}
\chapter{Introduction}
\lipsum[1]
\begin{enumerate}
\item This it the first good and aligned example\\
\schemestart
File \arrow{->[\graph]}[0, 0.5]Save case as...
\schemestop\newline
\item Second, not aligned\\
\schemestart
File \arrow{->[\graph]}[0, 0.5]Probably\arrow{->}[0, 0.5]It is not\arrow{->[\graph]}[0, 0.5]Aligned
\schemestop\newline
\end{enumerate}
\lipsum[2]
\end{document}
-
- Posts: 6
- Joined: Tue Jun 04, 2019 9:05 pm
Issue with aligning of words in chemfig environement
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Issue with aligning of words in chemfig environement
\arrow(.base east--.base west)
to get the base lines aligned, but that puts the arrows at the bottom instead of the center. See section 5 of the 
-
- Posts: 6
- Joined: Tue Jun 04, 2019 9:05 pm
Issue with aligning of words in chemfig environement
The presentation contains some useful information that helped me solve my other problems.
Aligning the line to the bottom is a good solution, but not a solution that satisfies me ... in some cases which i use is even worse then before...but if I add an hidden character such as: y, p, g? it would help ad hoc maybe
-
- Posts: 6
- Joined: Tue Jun 04, 2019 9:05 pm
Issue with aligning of words in chemfig environement

