Tag Info

Hot answers tagged

7

You had a syntax error with a final } bracket missing on the last compound. Apart from that to put a label on an arrow use the general form \arrow{->[up][down]} To colour atoms, use {\color{red}H}. However, in a number of situations, such as ends of bonds, you need to write {}|{\color{red}H} instead. \documentclass[12pt,letterpaper]{report} ...


5

You can use \chembelow[<dim>]{<code>}{<stuff>}. I have used siunitx, in addition, to write those percentages. \documentclass[12pt,letterpaper]{report} \usepackage{chemfig,chemmacros} \usepackage{siunitx} \begin{document} \begin{center} \schemestart \chembelow[1.5ex]{\chemfig{CH_4}}{} \chemsign{+} \chemfig{Cl_2} ...


3

Since you're already loading the chemmacros package which loads and uses the chemformula package you can use the latter for the reaction. The key is the !(<below>)(<text>) syntax inside of \ch. \documentclass[12pt,letterpaper]{report} \usepackage{chemmacros} % \usepackage{siunitx} % already loaded by `chemmacros' \begin{document} ...


3

The breakpoint is before the glue, and if it broke there, the first line would be too underfull. You can add an additional breakpoint after the glue: \hsize 5cm \hrule Do you like me? \hfill\hbox{\quad$\bigcirc$ Yes\quad$\bigcirc$ No}. Do you like me?\ \hfill\allowbreak\hbox{\quad$\bigcirc$ Yes\quad$\bigcirc$ No}. Do you like me?\ ...


2

You can temporarily redefine \raggedright to do nothing. The output may not look pretty: .Rnw file (process with knitr, then LaTeX): \documentclass[a4paper]{article} \usepackage[pass]{geometry} \begin{document} \let\oldraggedright\raggedright \renewcommand\raggedright{} <<echo=FALSE,results="asis">>= utils::toLatex(sessionInfo()) @ ...


1

From the Sweave User Manual: Code chunks start with <<name>>= at the beginning of a line That is, inserting a tab you are violating this elemental convention, and simply the R chunk is not recognized as R code, but as plain LaTeX text. This can sound inconvenient, but imagine than you want to show (not execute) verbatim some R chunk in ...



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