Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241022 > unrolled thread
| Started by | lina <lina.lastname@gmail.com> |
|---|---|
| First post | 2021-10-08 16:10 +0200 |
| Last post | 2021-10-11 10:30 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.user
Chemfig Latex compile program lina <lina.lastname@gmail.com> - 2021-10-08 16:10 +0200
Re: Chemfig Latex compile program Jerome BENOIT <sphericaltriangle@rezozer.net> - 2021-10-08 17:10 +0200
Re: Chemfig Latex compile program Curt <curty@free.fr> - 2021-10-08 17:40 +0200
Re: Chemfig Latex compile program lina <lina.lastname@gmail.com> - 2021-10-11 10:30 +0200
| From | lina <lina.lastname@gmail.com> |
|---|---|
| Date | 2021-10-08 16:10 +0200 |
| Subject | Chemfig Latex compile program |
| Message-ID | <D5YJr-3r0-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hi,
When I updated the system, the following .tex code does not work, it shows
the error likes this:
(/usr/share/texlive/texmf-dist/tex/latex/chemformula/chemformula.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xfrac/xfrac.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty))
(/usr/share/texlive/texmf-dist/tex/latex/units/nicefrac.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)))
! Undefined control sequence.
*l.24 \setdoublesep {0.2 em} % 'Bond Spacing'*
\NeedsTeXFormat{LaTeX2e}[1997/12/01]
\documentclass[
journal=jacsat,
manuscript=article
]{achemso}
\usepackage[version=3]{mhchem}
\usepackage{wrapfig}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{threeparttable}
\usepackage{longtable,booktabs}
\usepackage[table, svgnames, dvipsnames]{xcolor}
\usepackage[first=0,last=9]{lcg}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{chemfig,chemmacros}
%\chemsetup[chemformula]{format=\sffamily}
\usepackage{chemformula}
\renewcommand*\printatom[1]{\ensuremath{\mathsf{#1}}}
\setdoublesep{0.2 em} % 'Bond Spacing'
\setatomsep{1.45 em} % 'Fixed Length'
\setbondoffset{0.1 em} % 'Margin Width'
\newcommand{\bondwidth}{0.08 em} % 'Line Width'
\setbondstyle{line width = \bondwidth}
\setcrambond{2pt}{}{}
\usetikzlibrary{decorations}
\pgfdeclaredecoration{ddbond}{initial}{
\state{initial}[width=4pt]{
\pgfpathlineto{\pgfpoint{4pt}{0pt}}
%\pgfpathmoveto{\pgfpoint{2pt}{2pt}}
\pgfpathmoveto{\pgfpoint{1pt}{2pt}}
\pgfpathlineto{\pgfpoint{2pt}{2pt}}
\pgfpathmoveto{\pgfpoint{3pt}{2pt}}
\pgfpathlineto{\pgfpoint{4pt}{2pt}}
\pgfpathmoveto{\pgfpoint{4pt}{0pt}}
}
\state{final}{
\pgfpathlineto{\pgfpointdecoratedpathlast}
}
}
\begin{document}
\end{document}
[toc] | [next] | [standalone]
| From | Jerome BENOIT <sphericaltriangle@rezozer.net> |
|---|---|
| Date | 2021-10-08 17:10 +0200 |
| Message-ID | <D5ZFv-3Zp-7@gated-at.bofh.it> |
| In reply to | #241022 |
Hello Lina, can you provide a more minimal sample that reproduce the error ?
Best wishes,
Jerome
On 08/10/2021 15:59, lina wrote:
> Hi,
>
> When I updated the system, the following .tex code does not work, it shows the error likes this:
>
> (/usr/share/texlive/texmf-dist/tex/latex/chemformula/chemformula.sty
> (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xfrac/xfrac.sty
> (/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty)
> (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty))
> (/usr/share/texlive/texmf-dist/tex/latex/units/nicefrac.sty
> (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)))
> ! Undefined control sequence.
> *l.24 \setdoublesep
> {0.2 em} % 'Bond Spacing'*
>
>
> \NeedsTeXFormat{LaTeX2e}[1997/12/01]
> \documentclass[
> journal=jacsat,
> manuscript=article
> ]{achemso}
>
> \usepackage[version=3]{mhchem}
> \usepackage{wrapfig}
> \usepackage{subfig}
> \usepackage{graphicx}
> \usepackage{threeparttable}
> \usepackage{longtable,booktabs}
> \usepackage[table, svgnames, dvipsnames]{xcolor}
> \usepackage[first=0,last=9]{lcg}
>
>
> \usepackage[T1]{fontenc}
> \usepackage[utf8]{inputenc}
> \usepackage{chemfig,chemmacros}
> %\chemsetup[chemformula]{format=\sffamily}
> \usepackage{chemformula}
> \renewcommand*\printatom[1]{\ensuremath{\mathsf{#1}}}
>
> \setdoublesep{0.2 em} % 'Bond Spacing'
> \setatomsep{1.45 em} % 'Fixed Length'
> \setbondoffset{0.1 em} % 'Margin Width'
> \newcommand{\bondwidth}{0.08 em} % 'Line Width'
> \setbondstyle{line width = \bondwidth}
> \setcrambond{2pt}{}{}
>
> \usetikzlibrary{decorations}
> \pgfdeclaredecoration{ddbond}{initial}{
> \state{initial}[width=4pt]{
> \pgfpathlineto{\pgfpoint{4pt}{0pt}}
> %\pgfpathmoveto{\pgfpoint{2pt}{2pt}}
> \pgfpathmoveto{\pgfpoint{1pt}{2pt}}
> \pgfpathlineto{\pgfpoint{2pt}{2pt}}
> \pgfpathmoveto{\pgfpoint{3pt}{2pt}}
> \pgfpathlineto{\pgfpoint{4pt}{2pt}}
> \pgfpathmoveto{\pgfpoint{4pt}{0pt}}
> }
> \state{final}{
> \pgfpathlineto{\pgfpointdecoratedpathlast}
> }
> }
>
>
> \begin{document}
>
> \end{document}
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2021-10-08 17:40 +0200 |
| Message-ID | <D608x-48o-3@gated-at.bofh.it> |
| In reply to | #241022 |
On 2021-10-08, lina <lina.lastname@gmail.com> wrote:
>
> *l.24 \setdoublesep {0.2 em} % 'Bond Spacing'*
>
>
I'm reading that the '\setdoublesep' macro is obsolete and has been
replaced by '\setchemfig{}'. Maybe this has something to do with the
error being thrown.
https://ctan.org/ctan-ann/id/mailman.2235.1520625403.5100.ctan-ann@ctan.org?lang=en
http://tug.ctan.org/macros/generic/chemfig/chemfig-en.pdf
[toc] | [prev] | [next] | [standalone]
| From | lina <lina.lastname@gmail.com> |
|---|---|
| Date | 2021-10-11 10:30 +0200 |
| Message-ID | <D6YR4-8mB-3@gated-at.bofh.it> |
| In reply to | #241027 |
[Multipart message — attachments visible in raw view] — view raw
Hi Jerome,
Hi Curt,
Thanks for the input, I changed the
\setdoublesep{0.2 em} % 'Bond Spacing'
\setatomsep{1.45 em} % 'Fixed Length'
\setbondoffset{0.1 em} % 'Margin Width'
\newcommand{\bondwidth}{0.08 em} % 'Line Width'
\setbondstyle{line width = \bondwidth}
\setcrambond{2pt}{}{}
to
\setchemfig{bond style={line width=0.08 em,red!70}}
\setchemfig{chemfig style=red}
\setchemfig{double bond sep = 0.2 em, atom sep = 1.45 em, bond offset = 0.1
em, cram width=2pt}
It gets closer to what I want,
Thanks again, lina
On Fri, Oct 8, 2021 at 5:38 PM Curt <curty@free.fr> wrote:
> On 2021-10-08, lina <lina.lastname@gmail.com> wrote:
> >
> > *l.24 \setdoublesep {0.2 em} % 'Bond Spacing'*
> >
> >
>
> I'm reading that the '\setdoublesep' macro is obsolete and has been
> replaced by '\setchemfig{}'. Maybe this has something to do with the
> error being thrown.
>
>
>
> https://ctan.org/ctan-ann/id/mailman.2235.1520625403.5100.ctan-ann@ctan.org?lang=en
>
> http://tug.ctan.org/macros/generic/chemfig/chemfig-en.pdf
>
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web