Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Aditya Mahajan via ntg-context

On Fri, 3 Dec 2021, Jan-Erik Hägglöf via ntg-context wrote:

> The result of testing, different error messages in MKIV and LMTX.
> 
> The attached files belongs to LMTX run with the attached m-circuitikz.mkxl 
> and m-tikz.mkxl in texmf-local

Not placed at the right place. From your log file:

open source > level 2, order 3, name 
'/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-local/m-circuitikz.mkxl'

(I am surprised it gets found! The should be texmf-local/tex/context/ sub-dir)

open source > level 3, order 4, name 
'/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'

(I am guessing that this is the old m-tikz.mkxl).

For such experiments, it is simplest if you place the files in the current 
directory.

Aditya___
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
___


Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Jan-Erik Hägglöf via ntg-context
The result of testing, different error messages in MKIV and LMTX.The attached files belongs to LMTX run with the attached m-circuitikz.mkxl and m-tikz.mkxl in texmf-local

asdf-error.log
Description: Binary data


asdf.log
Description: Binary data
3 dec. 2021 kl. 19:16 skrev Hans Hagen via ntg-context :___
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
___


[NTG-context] Blank lines discarded when \typing

2021-12-03 Thread Thangalin via ntg-context
Note the presence of double-spaced blank lines in the following document
and in the attached source file:

\setuptyping[numbering=line]
\starttext

\startbuffer[javacode]
try {
  final var num = stack.pop();

  if( num != null ) {
stack.push( blah );
  }


  return true;
}
\stopbuffer

\type{\typebuffer}:
\typebuffer[javacode]

\type{\typing}:
\starttyping
try {
  final var num = stack.pop();

  if( num != null ) {
stack.push( blah );
  }


  return true;
}
\stoptyping

\type{\typefile}:
\typefile{t.java}

\stoptext

There appear to be two issues.

First, \typefile produces what I'd consider the "correct" result, where the
double-spaced lines appear on the page as a double-space. Both the
\typebuffer and \typing commands ignore double-spacing. The double-spacing
is also ignored by \xmldisplayverbatim. How would you configure to give
\typebuffer, \typing, and \xmldisplayverbatim to honour double-spaces the
same way as \typefile?

Second, of lesser importance, is that the blank lines aren't numbered. This
makes the line numbers inconsistent with respect to IDEs. How would you
label all blank lines as well?

Out of curiosity, does the second issue relate to the first?

Thank you!
try {
  final var num = stack.pop();
  
  if( num != null ) {
stack.push( blah );
  }
  
  
  return true;
}
___
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
___


Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Hans Hagen via ntg-context

On 12/3/2021 3:47 PM, Aditya Mahajan via ntg-context wrote:

On Fri, 3 Dec 2021, Hans Hagen via ntg-context wrote:


On 12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:


I’ve been struggeling with the circuitikz module since my upgrade to
LMTX.

btw, We can have more 'catches' in the loader (t) module if needed. In
any case, also check if things work with mkiv.


I tested the example on mkiv, I got error that dipchip and fliflop JK are not defined. 
The file compiles if I comment those out. But in LMTX, I also get a "missing 
semicolon" error. There is also this warning, which may have something to do with 
what is going wrong:

system  > module wrapping error in 'tikz'

The error appears to be related to keyword arguments. The following example 
works:

 \usemodule[circuitikz]
 \starttext
 \startcircuitikz
 \draw (0,2) to[I] (2,2) ;
 \stopcircuitikz
 \stoptext

But this does not:

 \usemodule[circuitikz]
 \starttext
 \startcircuitikz
 \draw (0,2) to[I=1] (2,2) ;
 \stopcircuitikz
 \stoptext

can you test the attached ... this works here

\usemodule[circuitikz]
% \usemodule[tikz]

\starttext

\starttikzpicture
\draw (0,2) -- (2,2) ;
\stoptikzpicture

\startcircuitikz
\draw (0,2) to[I=1] (2,2) ;
\stopcircuitikz

\stoptext



Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-%D \module
%D   [   file=m-circuitikz,
%Dversion=2021.12.03,
%D  title=\CONTEXT\ Extra Modules,
%D   subtitle=CURCUITIKZ support,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-curcuitikz module distributed with tikz. This one
%D is for \LMTX.

\usemodule[m][tikz]

\startmodule[circuitikz]

\def\pgfcircversion {1.4.4}
\def\pgfcircversiondate {2021/10/31}

\usetikzlibrary[calc]
\usetikzlibrary[arrows.meta, bending]
\usetikzlibrary[fpu] % may be needed for use fpu reciprocal (v1.0.1)

\tikzinputfile{pgfcirc.defines.tex}
\tikzinputfile{pgfcircutils.tex}
\tikzinputfile{pgfcircpath.tex}

\tikzinputfile{pgfcircshapes.tex}
\tikzinputfile{pgfcircmonopoles.tex}
\tikzinputfile{pgfcircbipoles.tex}
\tikzinputfile{pgfcirctripoles.tex}
\tikzinputfile{pgfcircquadpoles.tex}
\tikzinputfile{pgfcircmultipoles.tex}

\tikzinputfile{pgfcirclabel.tex}
\tikzinputfile{pgfcircvoltage.tex}
\tikzinputfile{pgfcirccurrent.tex}
\tikzinputfile{pgfcircflow.tex}

% defaults

\setupmodule
  [current=european,
   voltage=european,
   resistor=american,
   inductor=cute,
   logic=american,
   siunitx=true,
   arrowmos=false]

% can be done nicer ... todo

\processaction
  [\currentmoduleparameter{voltage}]
  [european=>\ctikzset{voltage=european},
   american=>\ctikzset{voltage=american}]

\processaction
  [\currentmoduleparameter{current}]
  [european=>\ctikzset{ current=european},
   american=>\ctikzset{ current=american}]

\processaction
  [\currentmoduleparameter{label}]
  [straight=>\ctikzset{label/align = straight},
   align=>\ctikzset{label/align = rotate},
   smart=>\ctikzset{label/align = smart}]

\processaction
  [\currentmoduleparameter{resistor}]
  [european=>\ctikzset{ resistor=european},
   american=>\ctikzset{ resistor=american}]

\processaction
  [\currentmoduleparameter{inductor}]
  [european=>\ctikzset{ inductor=european},
   american=>\ctikzset{ inductor=american},
   cute=>\ctikzset{ inductor=cute}]

\processaction
  [\currentmoduleparameter{diode}]
  [full=>\ctikzset{ diode=full},
   empty=>\ctikzset{ diode=empty}]

\processaction
  [\currentmoduleparameter{logic}]
  [european=>\ctikzset{ logic ports=european},
   american=>\ctikzset{ logic ports=american}]

% hm, we have units built in and in mkii one can load the units module
% ... always been so ...

\processaction
  [\currentmoduleparameter{siunitx}]
  [true=>\def\SI#1#2{#1\,#2}
 \def\ampere{\rm{A}}
 \def\volt  {\rm{V}}
 \def\ohm   {\Omega}
 \def\siemens   {\rm{S}}
 \def\farad {\rm{F}}
 \def\henry {\rm{H}}
 \def\second{\rm{s}}
 \def\coulomb   {\rm{C}}
 \def\siemens   {\rm{S}}
 \def\radians   {\rm{rad}}
 \def\milli {\rm{m}}
 \def\micro {\mu}
 \def\nano  {\rm{n}}
 \def\pico  {\rm{p}}
 \def\kilo  {\rm{k}}
 \def\mega  {\rm{M}}
 \def\giga  {\rm{G}}
 \def\tera  {\rm{T}}]

\unprotect

\processaction
  [\currentmoduleparameter{arrowmos}]
  [true=>\pgf@circuit@mos@arrowstrue,
   f

[NTG-context] Wikfication of \commalistsentence

2021-12-03 Thread Andres Conrado Montoya via ntg-context
I talked too soon. This won't work, and I have no idea why:


\setuplabeltext [en] [and-1={{, }}, and-2={{ and }}]% Should be:  1, 2
and 3
\setuplabeltext [es] [and-1={{, }}, and-2={{ y }}]% Should be: 1, 2 y 3
\setuplabeltext [de] [and-1={{, }}, and-2={{ und }}]  % Should be: 1, 2 und
3

\starttext
\commalistsentence[one,two,three,four] % works as expected

\language[es]
\commalistsentence[uno,dos,tres,cuatro] % takes [en] settings

\language[de]
\commalistsentence[1,2,3,4] % takes [en] settings.
\stoptext
%%

If I change \mainlanguage, the main language is used in all three cases.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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
___


[NTG-context] Wikified \commalistsentence

2021-12-03 Thread Andres Conrado Montoya via ntg-context
Hi, just to let you know
https://wiki.contextgarden.net/Command/commalistsentence has been wikified,
feel free to make corrections or changes.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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
___


Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Aditya Mahajan via ntg-context
On Fri, 3 Dec 2021, Hans Hagen via ntg-context wrote:

> On 12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:
> 
> >> I’ve been struggeling with the circuitikz module since my upgrade to 
> >> LMTX.
> btw, We can have more 'catches' in the loader (t) module if needed. In 
> any case, also check if things work with mkiv. 

I tested the example on mkiv, I got error that dipchip and fliflop JK are not 
defined. The file compiles if I comment those out. But in LMTX, I also get a 
"missing semicolon" error. There is also this warning, which may have something 
to do with what is going wrong:

system  > module wrapping error in 'tikz'

The error appears to be related to keyword arguments. The following example 
works:

\usemodule[circuitikz]
\starttext
\startcircuitikz
\draw (0,2) to[I] (2,2) ;
\stopcircuitikz
\stoptext

But this does not:

\usemodule[circuitikz]
\starttext
\startcircuitikz
\draw (0,2) to[I=1] (2,2) ;
\stopcircuitikz
\stoptext


Aditya___
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
___


Re: [NTG-context] [DKIM] Re: [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Hans Hagen via ntg-context

On 12/3/2021 3:17 PM, skrantajanneman via ntg-context wrote:


My thougts on this, if it is a possible alternative, to do such things 
in metafun instead?
i guess so but we needs specs etc and time (nothing wrong with using 
tikz if one likes the syntax, apart from it being a dependency and a 
rather huge load (quite some files) and slower than mp)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


[NTG-context] upload

2021-12-03 Thread Hans Hagen via ntg-context

Hi,

a new upload

- some keywords renamed in the engine and therefore more split between 
mkiv and lmtx (hopefully i included all files) .. if something doesn't 
work any more it might be because i missed a rename.


- i finally decied that it does make sense to have native loops at the 
primitive level (after all, metapost as macro language also has them) 
and although much is possible in macros it doesn't mean we have to do it 
the (often ugly and showing-off-by-abusing-side-effects way).


We have just a constructor:

  \unexpandedloop  1 100 1 {.}

and a fully expandable one for e.g. use in \edef:

  \expandedloop1 100 1 {.}

plus an also fully expandable one for anywhere but with potential side 
effects (out of order local loops):


  \localcontrolledloop 1 100 1 {.}

complemented by a few status primitives (integers, use \the or \number 
to serialize them):


  \currentloopiterator
  \currentloopnesting

and a quitter that aborts at the next iteration:

  \quitloop

as usual it's experimental for a while. Among the rationales are 'less 
tracing clutter', 'performance' and 'more natural primitive tex coding' 
(but that one is personal).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread skrantajanneman via ntg-context
My thougts on this, if it is a possible alternative, to do such things in 
metafun instead?By the way I try this out.Thanks for all help,  appreciated.mvh 
Jan-Erik Hägglöf 
 Originalmeddelande Från: Hans Hagen via ntg-context 
 Datum: 2021-12-03  14:55  (GMT+01:00) Till: mailing list 
for ConTeXt users  Kopia: Hans Hagen  
Ämne: Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken On 
12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:>> I’ve been struggeling 
with the circuitikz module since my upgrade to >> LMTX.btw, We can have more 
'catches' in the loader (t) module if needed. In any case, also check if things 
work with mkiv. That version has hardly been touched the last few years (and 
basically is frozen, apart from bug fixes) so if it doesn't work there it might 
be an indication of something in tikz or 
circuit.Hans-   
    Hans Hagen | PRAGMA ADE   
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands    tel: 038 477 53 69 | 
www.pragma-ade.nl | 
www.pragma-pod.nl-___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-contextwebpage  : 
http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 
https://bitbucket.org/phg/context-mirror/commits/wiki : 
http://contextgarden.net__
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
___


Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Hans Hagen via ntg-context

On 12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:

I’ve been struggeling with the circuitikz module since my upgrade to 
LMTX.
btw, We can have more 'catches' in the loader (t) module if needed. In 
any case, also check if things work with mkiv. That version has hardly 
been touched the last few years (and basically is frozen, apart from bug 
fixes) so if it doesn't work there it might be an indication of 
something in tikz or circuit.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Bad linebreak in figure caption

2021-12-03 Thread Denis Maier via ntg-context
I was asking myself that too as I fall into this trap from time to time. I 
would have thought that global settings are just that, global, and that other 
elements inherit these settings unless they modify them.

Denis

Von: ntg-context  im Auftrag von Marco Patzer via 
ntg-context 
Gesendet: Freitag, 3. Dezember 2021 13:21:40
An: mailing list for ConTeXt users
Cc: Marco Patzer
Betreff: Re: [NTG-context] Bad linebreak in figure caption

On Fri, 3 Dec 2021 09:14:59 +0100
Taco Hoekwater  wrote:

> Captions have their own alignment setting:
>
>  \setupcaption[figure][align={verytolerant,stretch}]

Thanks. Wikified:

  https://wiki.contextgarden.net/Command/setuptolerance

Is there a good reason why captions (as well as e.g. framed texts)
don't honour the global tolerance setting?

Marco
___
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
___
___
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
___


Re: [NTG-context] Bad linebreak in figure caption

2021-12-03 Thread Marco Patzer via ntg-context
On Fri, 3 Dec 2021 09:14:59 +0100
Taco Hoekwater  wrote:

> Captions have their own alignment setting:
> 
>  \setupcaption[figure][align={verytolerant,stretch}]

Thanks. Wikified:

  https://wiki.contextgarden.net/Command/setuptolerance

Is there a good reason why captions (as well as e.g. framed texts)
don't honour the global tolerance setting?

Marco
___
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
___


Re: [NTG-context] [DKIM] circuitikz module seems broken

2021-12-03 Thread Hans Hagen via ntg-context

On 12/3/2021 8:54 AM, Jan-Erik Hägglöf via ntg-context wrote:

Dear List!

I’ve been struggeling with the circuitikz module since my upgrade to LMTX.

The following test of installation failed, running file

circuitikz-context.tex in ../modules/t-tikz/ directory

% Copyright 2018-2021 by Romano Giannetti
% Copyright 2015-2021 by Stefan Lindner
% Copyright 2013-2021 by Stefan Erhardt
% Copyright 2007-2021 by Massimo Redaelli
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the files gpl-3.0_license.txt and lppl-1-3c_license.txt for more details.


\usemodule[circuitikz]

\starttext

A simple example to test the installation.

\startcircuitikz[scale=1.2]
\draw
   (0,2) to[I=1\milli\ampere] (2,2)
 to[R, l_=2\kilo\ohm, *-*] (0,0)
 to[R, l_=2\kilo\ohm] (2,0)
 to[V, v_=2\volt] (2,2)
 to[cspst, l=$t_0$] (4,2) -- (4,1.5)
 to [generic, i=$i_1$, v=$v_1$] (4,-.5) -- (4,-1.5)
   (0,2) -- (0,-1.5) to[V, v_=4\volt] (2,-1.5)
 to [R, l=1\kilo\ohm] (4,-1.5)
   (5,2) node[dipchip, anchor=pin 1]{}
   (5,-2) node[flipflop JK, anchor=pin 1]{};

\stopcircuitikz

\stoptext

with this error message

pgfcircutils.tex|103 error| Undefined control sequence \undefined

i get

tex error   > tex error on line 19 in file ./x.tex: Package tikz 
Error: Giving up on this path. Did you forget a semicolon?


so i suppose i have a different version (i admit that i never use tikz 
so i'm not even sure what to install)


so i updated both tikz and your module and get

fonts   > 'fallback modern-designsize rm 12pt' is loaded
tex error   > tex error on line 24 in file ./x.tex: Package tikz 
Error: Giving up on this path. Did you forget a semicolon?


I get something with:

\pushcatcodetable \setcatcodetable\texcatcodes

\startcircuitikz[scale=1.2]
\draw
(0,2)
% to[I=1] (2,2)
to[R, l_=2, *-*] (0,0)
to[R, l_=2] (2,0)
% to[V, v_=2] (2,2)
to[cspst, l=$t_0$]
(4,2) -- (4,1.5)
% to [generic, i=$i_1$, v=$v_1$]
(4,-.5) -- (4,-1.5)
(0,2) -- (0,-1.5)
%  to[V, v_=4] (2,-1.5)
 to [R, l=1]
(4,-1.5) -- (5,2)
node[dipchip, anchor=pin 1]{}
(5,-2)
node[flipflop JK, anchor=pin 1]{}
  ;
\stopcircuitikz

\popcatcodetable

and leave the rest to others to figure out .. maybe some catcode issues

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Bad linebreak in figure caption

2021-12-03 Thread Taco Hoekwater via ntg-context


> On 2 Dec 2021, at 19:37, Marco Patzer via ntg-context  
> wrote:
> 
> On Mon, 29 Nov 2021 16:44:07 +0100
> Marco Patzer via ntg-context  wrote:
> 
>> Why does ConTeXt not break the line between "unnecessary" and "FOO"?
> 
> Any ideas how to fix this?

Captions have their own alignment setting:

 \setupcaption[figure][align={verytolerant,stretch}]

Best wishes,
Taco


___
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
___