Graphics, Figures & TablesRemove Chapter numbers Chemstyle Scheme environment

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
BoudewijnD
Posts: 60
Joined: Wed Nov 18, 2009 4:18 pm

Remove Chapter numbers Chemstyle Scheme environment

Post by BoudewijnD »

Hi,

In my last topic I tried to remove the auto-Chapter numbering of teh figure environment. And that worked now. But when using the Chemstyla package you can use the scheme environment. I also want to lose the chapter numbers for the scheme's but that doesn't work up till now. Can someone help me out here. Below the code of the main .tex file. And in the zip the .tex file and the 2 eps files for testing.
*note
Further more I would like to have the figure caption below the figure and the scheme caption above (with additional footnote below the scheme). And all captions should be flushed left. As already coded in the .tex.*/note

Code: Select all

\documentclass{book}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{chemstyle} % dit is voor mooi ACS like Referenties en Schema nummering


\DeclareCaptionLabelFormat{myformat}{\textbf{#1~#2}}
\captionsetup{within=none,labelformat=myformat}
\floatsetup[figure]{style=plain} %caption van de figuren er onder
\floatsetup[scheme]{style=plaintop} %caption van de schema's er boven en met \floatfoot een deel eronder
\captionsetup{singlelinecheck=off, justification=raggedright} %alle captions links uitlijnen

\begin{document}
\chapter{Nice Chapter}
\begin{figure}[h!]
\schemeref{4-OH-chito-4Mu}
\schemeref{4-deoxy-chito-4Mu}
 \includegraphics{Figure1.eps}
\caption{Umbelliferyl chitobioside fluorogenic substrate \compound{4-OH-chito-4Mu} and \compound{4-deoxy-chito-4Mu}.}                                                                                                                      
  % Figure1.eps: 0x0 pixel, 2400dpi, 0.00x0.00 cm, bb=
 \label{figure1}
\end{figure}

text text text

\subsection{Result and Discussion}

\begin{scheme}[!ht]
\schemeref{4-deoxy-chito-4Mu}
\schemeref{chito-cl}
\schemeref{deoxy-donor}
\schemeref{OBn-donor}
\schemeref{4OH-2Nphth-SPh}
\caption{Synthetic outline for the large-scale synthesis of umbelliferyl chitobioside fluorogenic substarte \compound{4-deoxy-chito-4Mu}}
 \includegraphics{Scheme1.eps}
 % Scheme1.eps: 0x0 pixel, 2400dpi, 0.00x0.00 cm, bb=
  \label{scheme1}
\end{scheme}

\end{document}


\BoudewijnD
Attachments
test.zip
tex + 2 eps
(71.5 KiB) Downloaded 157 times
Last edited by BoudewijnD on Tue Apr 26, 2011 4:42 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Remove Chapter numbers Chemstyle Scheme environment

Post by sommerfee »

Unfortnately the chemstyle package do not offer an option for that. But I see two different methods of resolution:

1. Hide the \chapter command to the chemstyle package so it will define the scheme environment with a sequential counter:

Code: Select all

\documentclass{book}
\usepackage[runs=2]{auto-pst-pdf}

\let\savedchapter\chapter % save definition of \chapter
\let\chapter\undefined    % undefine \chapter (temporarily)
\usepackage{chemstyle}
\let\chapter\savedchapter % restore definition of \chapter

...
-or-

2. Use one of the extra packages which offer correction of counter dependencies, e.g. \numberwithout of the amsmath package or \counterwithout of the chngcntr package.
BoudewijnD
Posts: 60
Joined: Wed Nov 18, 2009 4:18 pm

Remove Chapter numbers Chemstyle Scheme environment

Post by BoudewijnD »

sommerfee wrote: 2. Use one of the extra packages which offer correction of counter dependencies, e.g. \numberwithout of the amsmath package or \counterwithout of the chngcntr package.
I now use the chngcntr package and it works great!

Thanx,

\BoudewijnD

Topic closed!
Post Reply