ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Susanne G. Loeber" <dekleurenfamilie@gmail.com>
To: ntg-context@ntg.nl
Subject: question regarding \placefloats
Date: Wed, 8 Aug 2018 14:33:21 +0200	[thread overview]
Message-ID: <CABRYdKcGLmugzXo6V2BrXLiE7E2YpePMbfZhSiqN8H_So94SMQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1041 bytes --]

Dear Reader,

I have a document with figures and tables. I have tried to use the command
  \placefloats to create a list of all my floats as recommended on the page
Floating Objects, section Flushing floats. There it states: The command
\placefloats outputs all pending floats. I hoped to get a list with all
tables, all figures and all other possible floats.That list would either be
sorted per chapter or sorted per float. However, I was not able to make it
work at all.

In the appendix, you can find my struggles.
First:
\placefloats does not work.

\placelistoffloats does not exist as a command

My solution is two seperate commands, one for the tables \placelistoftables
and one for the figures \completelistoffigures.

Question: how to use \placefloats correctly to get a list of all floats?


Second:

\startcombination[1*2] looks nice, but does not add information to the
\placelistoffigures .

My solution is to place the \startcombination inside a \placefigure.

Question: Is there a better way?


Kind regards, thanks,

Susanne

[-- Attachment #1.2: Type: text/html, Size: 1591 bytes --]

[-- Attachment #2: placefloat.tex --]
[-- Type: application/octet-stream, Size: 2602 bytes --]

\usemodule[tikz]  
\starttext
	
\completecontent % with title

\par \startTEX \placefloats does not work \stopTEX
\placefloats

\par \startTEX \placelistoffloats is not a known ConTeXt command \stopTEX

\par \startTEX \placelistoftables \stopTEX
\placelistoftables

\par \startTEX \completelistoffigures starts on a new page with header\stopTEX
\setupheadtext[figures=Afbeeldingen en Tikz]
\completelistoffigures[alternative=c]



\startchapter
	[title={Hoofdstuk 1}]

\par \input knuth

\placefigure[here][fig:vierkant]{Vierkant}{\hbox{\starttikzpicture \draw[green] (0,0) rectangle (2,2); \stoptikzpicture}}	

\placefigure[here][fig:rechthoek]{Rechthoek}{\hbox{\starttikzpicture \draw[blue] (0,0) rectangle (4,2); \stoptikzpicture}}

\startsection
	[title={Sectie A}]
	
\par \input knuth	

\placetable[here][tab:12]{Een rij met twee kolommen}{\startxtable \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell \stopxrow \stopxtable}	

\stopsection

\stopchapter

\startchapter
	[title={Hoofdstuk 2}]

\par \input knuth

\placetable[here][tab:AB]{Een kolom met twee rijen}{\startxtable \startxrow \startxcell A \stopxcell \stopxrow \startxrow \startxcell B \stopxcell \stopxrow \stopxtable}	

\placefigure[here][fig:cows]{Koeien}{\externalfigure[cows.pdf]}

\stopchapter

\startchapter
	[title={Hoofdstuk 3}]

\par \input knuth

\stopchapter

\startchapter
	[title={Hoofdstuk 4}]

\par \input knuth

\par \startTEX \startxombiation[3*2] doesn't place info inside \completelistoffigures \stopTEX

\startcombination[3*2]
{\hbox{\starttikzpicture \draw[red] (0,0) circle (1cm); \stoptikzpicture}}{text 1}  {\hbox{\starttikzpicture \draw[red] (0,0) circle (1cm); \stoptikzpicture}}{text 2} 
{\hbox{\starttikzpicture \draw[red] (0,0) circle (1cm); \stoptikzpicture}}{text 3} {\hbox{\starttikzpicture \draw[red] (0,0) circle (1cm); \stoptikzpicture}}{text 4}
{\hbox{\starttikzpicture \draw[red] (0,0) circle (1cm); \stoptikzpicture}}{text 5} {\hbox{\starttikzpicture \draw[red] (0,0) circle (1cm); \stoptikzpicture}}{text 6}  
\stopcombination

\par \startTEX A solution is to use \startcombination inside \placefigure \stopTEX

\placefigure[here][fig:c12]{Combi cirkels}{
\startcombination[1*2]
{\hbox{\starttikzpicture \draw[green] (0,0) circle (0.5); \stoptikzpicture}}{c1}
{\hbox{\starttikzpicture \draw[green] (0,0) circle (0.5); \stoptikzpicture}}{c2}
\stopcombination}

\placefigure[top][fig:cirkel]{Cirkel x}{\hbox{\starttikzpicture \draw[cyan] (0,0) circle (1cm); \stoptikzpicture}}


\stopchapter

\stoptext

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2018-08-08 12:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-08 12:33 Susanne G. Loeber [this message]
2018-08-08 15:54 ` Alan Braslau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABRYdKcGLmugzXo6V2BrXLiE7E2YpePMbfZhSiqN8H_So94SMQ@mail.gmail.com \
    --to=dekleurenfamilie@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).