From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113767 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?q?Jan-Erik_H=C3=A4ggl=C3=B6f_via_ntg-context?= Newsgroups: gmane.comp.tex.context Subject: Re: how to setup path of ConTeXtLMTX for MacVim? Date: Tue, 14 Dec 2021 22:31:10 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/mixed; boundary="===============1148064121094853982==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7363"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 14 22:31:57 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxFOv-0001dq-GO for gctc-ntg-context-518@m.gmane-mx.org; Tue, 14 Dec 2021 22:31:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AAE47283B0A; Tue, 14 Dec 2021 22:31:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NjPa3_gEKv77; Tue, 14 Dec 2021 22:31:17 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CBA1A283A23; Tue, 14 Dec 2021 22:31:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F403283A23 for ; Tue, 14 Dec 2021 22:31:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RrSdpye4muYU for ; Tue, 14 Dec 2021 22:31:14 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.178; helo=mail-lj1-f178.google.com; envelope-from=skrantajanneman@gmail.com; receiver= Original-Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DFCBE28397D for ; Tue, 14 Dec 2021 22:31:13 +0100 (CET) Original-Received: by mail-lj1-f178.google.com with SMTP id m12so30330514ljj.6 for ; Tue, 14 Dec 2021 13:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=iPvErnjvNzVWLl6PfPKV7AelkUUwhq6bOso7P+LOsYU=; b=QWJDrt5Nlc296PipWH2B33S2seTCR5fMVMfPXxyjiQPb5ei5Tv0gYTAc5Jf6VGpfQ6 py7p7yX+jeNwVRyYL/X9guI1v1BqeSxf0J8kNEIgPjM8cdnlNZLq5PxEsE6QDY9vCvrP KE4BqQjDY1gT2I1NFAnQpGhfrt/QGJX4Mta4gLoQAa0PL2dc6f6KsNxezTrSA3KV4OEC WPfucOpXrldKK0yrw+u4yK/ikcTo36eyXYpBY//aH082utueVPGS5FdyFW/94fvvXYl0 o/Pag6sD4cXWLliIYg+PgiIUrYKPY+VH9p9tjVz0hQJF3BoEgBhaTCuH/4qLtXU/EPzB 2hKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=iPvErnjvNzVWLl6PfPKV7AelkUUwhq6bOso7P+LOsYU=; b=Iv59FpcnaL8u326IkvLEmv+OrFZXyK2hiOWP6+kqeeMtYDjUNFlIP4KRkANwGHH9jt RKReKOu43VMigshPp2th/6lQVwcO26ePUuyYzeaBCEkmg87c5rTpvy7PaKlTr0hhKaxk WP31Kc7FCqNCGNBrgljLoiiwzgaBLGwHJY/wIK6rqAizWNCASoW5yoE94937aJ0QMoBb sP7+op4duduUZMtjK+ssmB4++wX46jaWF5uNDukq9kzKzpPW+RyALXxDfJItGGzpwDL9 elb4PJHpGmEP8i+Goy+HhMrbg9vCz/jf5MmNRE9K6N9jFUAl9CVQ3rXoNfG9efWnbjBU pRnw== X-Gm-Message-State: AOAM532hk65hvEvK98oqdxRzi74pzPJtTxwvlc45ZatxSyUbpa0xZscz Z9Odrhe3GB1E2pPcy3ZEl8MnPVR3EjE= X-Google-Smtp-Source: ABdhPJzsJNSQyjPiV44gVuKD9J8vq4QFeN+8L58raDuvaGxuRGxZ9CkbVoF+O47XqTIWlIAP0tmHGw== X-Received: by 2002:a2e:6e15:: with SMTP id j21mr7322529ljc.195.1639517472180; Tue, 14 Dec 2021 13:31:12 -0800 (PST) Original-Received: from smtpclient.apple (h-158-174-22-138.NA.cust.bahnhof.se. [158.174.22.138]) by smtp.gmail.com with ESMTPSA id t19sm145800lfe.298.2021.12.14.13.31.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Dec 2021 13:31:11 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113767 Archived-At: --===============1148064121094853982== Content-Type: multipart/alternative; boundary="Apple-Mail=_DD9F48B6-BD4F-4A76-8DF7-E5D2F8412A14" --Apple-Mail=_DD9F48B6-BD4F-4A76-8DF7-E5D2F8412A14 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Check if your *.tex file is recognized as a context file and not a = plaintex file.=20 I=E2=80=99ve struggelled a lot with macvim before I got what I want. I recommend following places learning everything in vim and many nice = plugins that helps a lot. If you want I can provide my .vimrc as an inspiration and starting = point. Se below. https://wiki.contextgarden.net/Vim https://vim.fandom.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_1) = https://devhints.io/vim a cheatsheet In the MacVim application it took some time to figure out why my *.tex = files never recognizes as context files and the hardcoded solution was = to comment out the following in /Applications/MacVim.app/Contents/Resources/vim/runtime/filetype.vim " TeX "au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex "au BufNewFile,BufRead *.tex call dist#ft#FTtex() and instead adding " ConTeXt au BufNewFile,BufRead *.tex,*.ctx,*.mkii,*.mkiv,*.mkvi,*.mkxl,*.mklx = setf context It works for Me who only using context as a typesetting engine. Normally you do not need to do this but it seems that my own = filetype.vim on upstart never reads. Here is my .vimrc if you find it useful, enjoy.=20 set lines=3D68 set columns=3D140 set guifont=3DMonaco:h16 " Install vim-plug if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ = https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim "autocmd VimEnter * PlugInstall "autocmd VimEnter * PlugInstall | source $MYVIMRC endif call plug#begin() " Better Syntax Support Plug 'sheerun/vim-polyglot' " File Explorer Plug 'scrooloose/NERDTree' " Auto pairs for '(' '[' '{'"call = plug#begin('~/.config/nvim/autoload/plugged') Plug 'jiangmiao/auto-pairs' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' Plug '907th/vim-auto-save' call plug#end() " Settings for Ultisnips let g:UltiSnipsExpandTrigger=3D"" let g:UltiSnipsJumpForwardTrigger=3D"" let g:UltiSnipsJumpBackwardTrigger=3D"" " If you want :UltiSnipsEdit to split your window. let g:UltiSnipsEditSplit=3D"vertical" " set leader key let g:mapleader =3D "\" " enable AutoSave on Vim startup let g:auto_save =3D 1 set number " Line numbers set cmdheight=3D2 " More space for displaying = messages set cursorline " Enable highlighting of the = current line set clipboard=3Dunnamed syntax enable " Enables syntax highlighing let g:AutoPairsShortcutFastWrap =3D "" " Better nav for omnicomplete " inoremap ("\") " inoremap ("\") " Use alt + hjkl to resize windows nnoremap :resize -2 nnoremap :resize +2 nnoremap :vertical resize -2 nnoremap :vertical resize +2 " I hate escape more than anything else inoremap jk inoremap kj " Easy CAPS inoremap viwUi nnoremap viwU " TAB in general mode will move to text buffer nnoremap :bnext " SHIFT-TAB will go back nnoremap :bprevious " Alternate way to save nnoremap :w " Alternate way to quit nnoremap :wq! " Use control-c instead of escape nnoremap " Better window navigation nnoremap h nnoremap j nnoremap k nnoremap l nnoremap o o^Da nnoremap O O^Da nnoremap :NERDTreeToggle $HOME Regards Jan-Erik > 14 dec. 2021 kl. 15:37 skrev Jeong Dal via ntg-context = : >=20 > Dear Nicola, Jan-Erik, and John, >=20 > Although you have explained about the way out of my problem,=20 > I am still in the problem. >=20 > I need to learn more about vim. > I=E2=80=99ll do more try following your advice and the explanation in = wiki. >=20 > Thank you again for your help. >=20 > Best regards, >=20 > Dalyoung >=20 >> 2021. 12. 14. =EC=98=A4=EC=A0=84 8:56, ntg-context-request@ntg.nl = =EC=9E=91=EC=84=B1: >>=20 >> Send ntg-context mailing list submissions to >> ntg-context@ntg.nl >>=20 >> To subscribe or unsubscribe via the World Wide Web, visit >> https://mailman.ntg.nl/mailman/listinfo/ntg-context >> or, via email, send a message with subject or body 'help' to >> ntg-context-request@ntg.nl >>=20 >> You can reach the person managing the list at >> ntg-context-owner@ntg.nl >>=20 >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of ntg-context digest..." >>=20 >>=20 >> Today's Topics: >>=20 >> 1. Re: how to setup path of ConTeXtLMTX for MacVim? >> (Jan-Erik H=C3=A4ggl=C3=B6f) >> 2. Re: circuitikz module seems broken (Hans Hagen) >> 3. Re: TeXWorks and synctex SOLVED (Bruce Horrocks) >>=20 >>=20 >> = ---------------------------------------------------------------------- >>=20 >> Message: 1 >> Date: Tue, 14 Dec 2021 00:48:25 +0100 >> From: Jan-Erik H=C3=A4ggl=C3=B6f >> To: mailing list for ConTeXt users >> Subject: Re: [NTG-context] how to setup path of ConTeXtLMTX for >> MacVim? >> Message-ID: <32566C08-2359-48DF-B24C-2AA2E3D02488@gmail.com> >> Content-Type: text/plain; charset=3D"utf-8" >>=20 >> let g:context_mtxrun =3D = 'PATH=3D$HOME/context/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun' >>=20 >> nnoremap =C3=A5 :ConTeXt >> nnoremap =C3=B6 :call tex#preview() >> nnoremap =C3=A4 >> \ :call tex#goto_texshop(expand("%:p"), line('.'), col('.'), = 1, 1) >>=20 >> Here is my snippet from my personal context.vim file >>=20 >> I see that you have :! and that means that you instruct vim to = execute a shell command. >>=20 >> Just write :ConTeXt and it should work fine >>=20 >>> 13 dec. 2021 kl. 14:30 skrev Jeong Dal via ntg-context = : >>>=20 >>> Dear John, Nicola, >>>=20 >>> I created a file context.vim under the folder ~/.vim/after/ftplugin/ = which contains >>>=20 >>> map > :w:!ConTeXt >>> let g:context_mtxrun =3D = 'PATH=3D$HOME/ConTeXtLM/tex/texmf-osx-64/bin:$PATH mtxrun' >>> let g:tex_flavor =3D "context" >>>=20 >>> The result is >>> 1. using =E2=80=9C:ConTeXt=E2=80=9D issued an error message: = =E2=80=9CE492: not an editor command: ConTeXt >>> 2. using =E2=80=9Cmake=E2=80=9D issued an error message: "No targets = specified and no makefile found. =E2=80=A6"=20 >>> Pressing C-h, compiling started and succesfully ended. However, it = use /usr/local/texlive/=E2=80=A6 not LMTX tex folder. >>>=20 >>> Without context.vim, =E2=80=9C:ConTeXt" and =E2=80=9C:make" worked = fine. >>>=20 >>> I=E2=80=99ll do more test.=20 >>>=20 >>> Thank you. >>> Best regards, >>>=20 >>> Dalyoung >>>=20 >>> = __________________________________________________________________________= _________ >>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>=20 >>> 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 >>> = __________________________________________________________________________= _________ >>=20 >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: = >>=20 >> ------------------------------ >>=20 >> Message: 2 >> Date: Tue, 14 Dec 2021 00:54:44 +0100 >> From: Hans Hagen >> To: mailing list for ConTeXt users , Aditya >> Mahajan >> Subject: Re: [NTG-context] circuitikz module seems broken >> Message-ID: <41f06234-caab-6576-aa5e-8396c8ee34db@xs4all.nl> >> Content-Type: text/plain; charset=3D"utf-8"; Format=3D"flowed" >>=20 >> Hi, >>=20 >> This works here: >>=20 >> \usemodule[circuitikz] >>=20 >> \starttext >> \startcircuitikz >> \draw (0,2) to[I] (2,2); >> \stopcircuitikz >> \startcircuitikz >> \draw (0,2) to[I] (2,2); >> \stopcircuitikz >> \stoptext >>=20 >> with the attached. Make sure to put it in the regular context base = path=20 >> and run mtxrun --generate. >>=20 >> Aditya: can you check if we load enough? We really need to get rid of=20= >> all these (kind of strange) t-* modules that somehow ended up in tikz=20= >> and it's way easier and robust to occasionally add something needed = to=20 >> m-tikz than to try to catch hard-to-locate-and-fix stuff in the tikz=20= >> distribution. If needed we can apply runtime patches too. >>=20 >> (nyw, it looks like tikz creates empty pfg files during a run but = that's=20 >> probbably has a reason) >>=20 >> Hans >>=20 >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl >> ----------------------------------------------------------------- >> -------------- next part -------------- >> %D \module >> %D [ file=3Dm-tikz, >> %D version=3D2021.07.12, >> %D title=3D\CONTEXT\ Extra Modules, >> %D subtitle=3DTIKZ support, >> %D author=3DHans Hagen, >> %D date=3D\currentdate, >> %D copyright=3D{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. >>=20 >> %D A fixed variant of the t-tikz module distributed with tikz. For = practical reasons >> %D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe some day = I'll optimize >> %D TIKZ a bit.) >> %D >> %D All these t-* modules in the tikz distribution make no sense as we = can just load >> %D them here which is way cleaner. There is also some mkii filename = mapping going on >> %D that is not needed on todays systems (windows has no 8.3 = limitation and on unix >> %D tds finally adopted a case insensitive approach.) >>=20 >> %D Just in case someone does a hard input ... >>=20 >> \ifdefined\pgfdefined \endinput \fi >> \ifdefined\pgfcoredefined\endinput \fi >>=20 >> %D ... but normally we end up here: >>=20 >> \startmodule[tikz] >>=20 >> \ifdefined\pdflastxpos \else >> \unprotect >> = \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax} >> = \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax} >> \protect >> \fi >>=20 >> \permanent\protected\def\starttikzinput >> {\pushoverloadmode >> \pushcatcodetable >> \setcatcodetable\texcatcodes >> \catcode`\@=3D11 >> \catcode`\|=3D12 >> \catcode`\!=3D12 >> \autoparagraphmode\zerocount} >>=20 >> \permanent\protected\def\stoptikzinput >> {\autoparagraphmode\plusone >> \popcatcodetable >> \popoverloadmode} >>=20 >> \permanent\protected\def\tikzinputfile#1% >> {\starttikzinput >> \input{#1}\relax >> \stoptikzinput} >>=20 >> \permanent\protected\def\tikzerrormessage#1#2#3% >> {\writestatus{#1}{#2}} >>=20 >> % For now we need this but we need to educate the user to wrap = settings in the >> % wrappers. So some day the next line will go. I need to check what = commands are >> % possible outside a picture. >>=20 >> \overloadmode\zerocount >>=20 >> \permanent\protected\def\starttikzsettings >> {\pushoverloadmode >> \autoparagraphmode\zerocount} >>=20 >> \permanent\protected\def\stoptikzsettings >> {\autoparagraphmode\plusone >> \popoverloadmode} >>=20 >> \permanent\protected\def\starttikzpicture >> {\dontleavehmode >> \hcontainer\bgroup >> \autoparagraphmode\zerocount >> % \pushoverloadmode >> \ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi >> \tikzpicture} >>=20 >> \permanent\protected\def\stoptikzpicture >> {\endtikzpicture >> % \popoverloadmode >> \egroup} >>=20 >> \let\pgfdefined \relax >> \let\pgfcoredefined\relax >>=20 >> \tikzinputfile{pgfutil-common.tex} >> \tikzinputfile{pgfutil-context.def} >> \tikzinputfile{pgfrcs.code.tex} >> \tikzinputfile{pgfsys.code.tex} >> \tikzinputfile{pgfkeys.code.tex} >> \tikzinputfile{pgfsyssoftpath.code.tex} >> \tikzinputfile{pgfsysprotocol.code.tex} >> \tikzinputfile{pgfcore.code.tex} >> \tikzinputfile{pgffor.code.tex} >> \tikzinputfile{pgfmoduleplot.code.tex} >> \tikzinputfile{tikz.code.tex} >>=20 >> \let\startpgfpicture \pgfpicture = \let\stoppgfpicture \endpgfpicture >> \let\startpgfscope \pgfscope = \let\stoppgfscope \endpgfscope >> \let\startpgflowlevelscope \pgflowlevelscope = \let\stoppgflowlevelscope \endpgflowlevelscope >> \let\startpgfinterruptpath \pgfinterruptpath = \let\stoppgfinterruptpath \endpgfinterruptpath >> \let\startpgfinterruptpicture \pgfinterruptpicture = \let\stoppgfinterruptpicture \endpgfinterruptpicture >> \let\startpgfinterruptboundingbox\pgfinterruptboundinbox = \let\stoppgfinterruptboudingbox\endpgfinterruptboundingbox >>=20 >> \let\normalusepgfmodule\usepgfmodule >> \let\normalusepgflibrary\usepgflibrary >>=20 >> \tolerant\protected\def\usepgfmodule[#1]#;#2% somehow both variants = are used >> {\starttikzinput >> \normalusepgfmodule[#1#2]% >> \stoptikzinput} >>=20 >> \tolerant\protected\def\usepgflibrary[#1]#;#2% somehow both variants = are used >> {\starttikzinput >> \normalusepgflibrary[#1#2]% >> \stoptikzinput} >>=20 >> \usepgfmodule[shapes] >> \usepgfmodule[plot] >> \usepgfmodule[matrix] >> \usepgfmodule[decorations] >>=20 >> \stopmodule >> -------------- next part -------------- >> %D \module >> %D [ file=3Dm-circuitikz, >> %D version=3D2021.12.03, >> %D title=3D\CONTEXT\ Extra Modules, >> %D subtitle=3DCURCUITIKZ support, >> %D author=3DHans Hagen, >> %D date=3D\currentdate, >> %D copyright=3D{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. >>=20 >> %D A fixed variant of the t-curcuitikz module distributed with tikz. = This one >> %D is for \LMTX. >>=20 >> \usemodule[m][tikz] >>=20 >> \startmodule[circuitikz] >>=20 >> \def\pgfcircversion {1.4.4} >> \def\pgfcircversiondate {2021/10/31} >>=20 >> \usetikzlibrary[calc] >> \usetikzlibrary[arrows.meta] >> \usetikzlibrary[bending] >> \usetikzlibrary[fpu] % may be needed for use fpu reciprocal (v1.0.1) >>=20 >> \tikzinputfile{pgfcirc.defines.tex} >> \tikzinputfile{pgfcircutils.tex} >> \tikzinputfile{pgfcircpath.tex} >>=20 >> \tikzinputfile{pgfcircshapes.tex} >> \tikzinputfile{pgfcircmonopoles.tex} >> \tikzinputfile{pgfcircbipoles.tex} >> \tikzinputfile{pgfcirctripoles.tex} >> \tikzinputfile{pgfcircquadpoles.tex} >> \tikzinputfile{pgfcircmultipoles.tex} >>=20 >> \tikzinputfile{pgfcirclabel.tex} >> \tikzinputfile{pgfcircvoltage.tex} >> \tikzinputfile{pgfcirccurrent.tex} >> \tikzinputfile{pgfcircflow.tex} >>=20 >> % defaults >>=20 >> \setupmodule >> [current=3Deuropean, >> voltage=3Deuropean, >> resistor=3Damerican, >> inductor=3Dcute, >> logic=3Damerican, >> siunitx=3Dtrue, >> arrowmos=3Dfalse] >>=20 >> % can be done nicer ... todo >>=20 >> \processaction >> [\currentmoduleparameter{voltage}] >> [european=3D>\ctikzset{voltage=3Deuropean}, >> american=3D>\ctikzset{voltage=3Damerican}] >>=20 >> \processaction >> [\currentmoduleparameter{current}] >> [european=3D>\ctikzset{ current=3Deuropean}, >> american=3D>\ctikzset{ current=3Damerican}] >>=20 >> \processaction >> [\currentmoduleparameter{label}] >> [straight=3D>\ctikzset{label/align =3D straight}, >> align=3D>\ctikzset{label/align =3D rotate}, >> smart=3D>\ctikzset{label/align =3D smart}] >>=20 >> \processaction >> [\currentmoduleparameter{resistor}] >> [european=3D>\ctikzset{ resistor=3Deuropean}, >> american=3D>\ctikzset{ resistor=3Damerican}] >>=20 >> \processaction >> [\currentmoduleparameter{inductor}] >> [european=3D>\ctikzset{ inductor=3Deuropean}, >> american=3D>\ctikzset{ inductor=3Damerican}, >> cute=3D>\ctikzset{ inductor=3Dcute}] >>=20 >> \processaction >> [\currentmoduleparameter{diode}] >> [full=3D>\ctikzset{ diode=3Dfull}, >> empty=3D>\ctikzset{ diode=3Dempty}] >>=20 >> \processaction >> [\currentmoduleparameter{logic}] >> [european=3D>\ctikzset{ logic ports=3Deuropean}, >> american=3D>\ctikzset{ logic ports=3Damerican}] >>=20 >> % hm, we have units built in and in mkii one can load the units = module >> % ... always been so ... >>=20 >> \processaction >> [\currentmoduleparameter{siunitx}] >> [true=3D>\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}}] >>=20 >> \unprotect >>=20 >> \processaction >> [\currentmoduleparameter{arrowmos}] >> [true=3D>\pgf@circuit@mos@arrowstrue, >> false=3D>\pgf@circuit@mos@arrowsfalse] >>=20 >> \protect >>=20 >> \ctikzset{tripoles/op amp/font/.initial=3D\switchtobodyfont[small]} >>=20 >> \aliased\let\stopcircuitikz\relax >>=20 >> \permanent\protected\def\startcircuitikz#1\stopcircuitikz >> {\starttikzpicture#1\stoptikzpicture} >>=20 >> \stopmodule >>=20 >> \endinput >>=20 >> ------------------------------ >>=20 >> Message: 3 >> Date: Mon, 13 Dec 2021 23:56:42 +0000 >> From: Bruce Horrocks >> To: mailing list for ConTeXt users >> Subject: Re: [NTG-context] TeXWorks and synctex SOLVED >> Message-ID: <119632CF-08D9-4A73-922C-9C59D7EB3FD5@scorecrow.com> >> Content-Type: text/plain; charset=3Dutf-8 >>=20 >> For those searching in future, the minimum needed to make synctex = work with ConTeXt and TeXShop on macOS Monterey is: >>=20 >> 1) Reasonably new LMTX. I have version 2021.12.10 11:41. (It might = well work going back a few versions but not too far.) >>=20 >> 2) TeXShop version 4.68 >>=20 >> 3) TeXShop -> Preferences -> Engines -> Alternate path *must* be set = to your LMTX installation. >> For me on an Intel Mac that is: = /Users/bruce/Applications/context-osx-64/tex/texmf-osx-64/bin >>=20 >> TeXShop uses this path to launch the program it needs to convert a = synctex location into a file name >> and line number. If this path is wrong then the editor just does = nothing. >>=20 >> 4) These two lines at the top of each source file you want to sync = to/from: >>=20 >> % !TEX useAlternatePath >> % !TEX useConTeXtSyncParser >>=20 >> 5) Either --synctex=3D"1" on the command line in the .engine file or = \setupsynctex [state=3Dstart, method=3Dmax] >> somewhere in your source (which can be in the current file or in an = environment file). >>=20 >> 6) Most times you will need to quit and restart TeXShop when you = change any of the above. >>=20 >>=20 >> You *do not* need: >>=20 >> 1) You do not need the "ConTeXt2021.engine" file: you can use your = own engine file as long as it invokes your local LMTX. So, for me, the = two key commands in the .engine file are: >>=20 >> set = path=3D(/Users/bruce/Applications/context-osx-64/tex/texmf-osx-64/bin = $path /Library/TeX/texbin /usr/texbin /usr/local/bin) >> mtxrun --script context --autogenerate "$1" >>=20 >> 2) You do not need the following magic line: >>=20 >> % !TEX TS-program =3D ConTeXt2021 >>=20 >> If you do include it then it will override the engine you select from = the drop down. >>=20 >>=20 >> Hopefully this answer will help others with this problem:- at least = until the version of ConTeXt shipped with TexShop is new enough to = support the new synctex and then there won't be any need to configure = anything. >>=20 >>=20 >>> On 13 Dec 2021, at 09:45, Bruce Horrocks via ntg-context = wrote: >>>=20 >>> I'm having trouble getting the new synctex to work on a Mac. I've = completely re-installed MacTeX and TeXWorks and synctex works fine for = LaTeX documents. But for ConTeXt no combination of magic lines etc will = work for me. The symptoms are... nothing - no errors but no synching, = either way. >>>=20 >>> Q1: is there a log file created somewhere or a debugging flag that = can be turned on which will tell me what is happening when I try to jump = from PDF to editor or vice versa? >>>=20 >>> Q2: Is this the same error as reported at the bottom of = https://wiki.contextgarden.net/SyncTeX ? Or has that been fixed? >>>=20 >>> PS: \enabletrackers[system.synctex.visualize] works as expected - = i.e. the .synctex file seems to be correct. >>=20 >> =E2=80=94 >> Bruce Horrocks >> Hampshire, UK >>=20 >>=20 >>=20 >> ------------------------------ >>=20 >> Subject: Digest Footer >>=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : https://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> = __________________________________________________________________________= _________ >>=20 >>=20 >> ------------------------------ >>=20 >> End of ntg-context Digest, Vol 210, Issue 34 >> ******************************************** >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_DD9F48B6-BD4F-4A76-8DF7-E5D2F8412A14 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Check= if your *.tex file is recognized as a context file and not a plaintex = file. 

I=E2=80=99= ve struggelled a lot with macvim before I got what I want.

I recommend following = places learning everything in vim and many nice plugins that helps a = lot.

If you = want I can provide my .vimrc as an inspiration and starting point. Se = below.




In the MacVim application it took some time to figure out why = my *.tex files never recognizes as context files and the hardcoded = solution was to comment out the following in

/Applications/MacVim.app/Contents/Resources/vim/runtime/filetyp= e.vim

" TeX
"au BufNewFile,BufRead = *.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex
"au = BufNewFile,BufRead *.tex call = dist#ft#FTtex()

and instead adding

" ConTeXt
au = BufNewFile,BufRead *.tex,*.ctx,*.mkii,*.mkiv,*.mkvi,*.mkxl,*.mklx   = setf context

It works for Me who only using context as a typesetting = engine.

Normally= you do not need to do this but it seems that my own filetype.vim on = upstart never reads.

Here is my .vimrc if you find it useful, = enjoy. 

set lines=3D68
set = columns=3D140
set guifont=3DMonaco:h16

" Install = vim-plug
if = empty(glob('~/.vim/autoload/plug.vim'))
  = silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  "autocmd VimEnter * = PlugInstall
  "autocmd VimEnter * PlugInstall = | source $MYVIMRC
endif

call plug#begin()
" = Better Syntax Support
Plug = 'sheerun/vim-polyglot'
" File Explorer
Plug 'scrooloose/NERDTree'
" Auto pairs = for '(' '[' '{'"call = plug#begin('~/.config/nvim/autoload/plugged')
Plug = 'jiangmiao/auto-pairs'
Plug = 'vim-airline/vim-airline'
Plug = 'vim-airline/vim-airline-themes'
Plug = 'SirVer/ultisnips'
Plug = 'honza/vim-snippets'
Plug = '907th/vim-auto-save'
call plug#end()

" Settings for = Ultisnips
let = g:UltiSnipsExpandTrigger=3D"<tab>"
let = g:UltiSnipsJumpForwardTrigger=3D"<tab>"
let = g:UltiSnipsJumpBackwardTrigger=3D"<c-z>"

" If you want :UltiSnipsEdit to split = your window.
let = g:UltiSnipsEditSplit=3D"vertical"

" set leader key
let= g:mapleader =3D "\<Space>"
" enable AutoSave = on Vim startup
let g:auto_save =3D 1
set number               =                " Line = numbers
set cmdheight=3D2       =                   " More = space for displaying messages
set cursorline   =                     =    " Enable highlighting of the current line

set = clipboard=3Dunnamed

syntax enable             =               " Enables syntax = highlighing

let = g:AutoPairsShortcutFastWrap =3D "<C-f>"


" = Better nav for omnicomplete
" inoremap <expr> = <c-j> ("\<C-n>")
" inoremap = <expr> <c-k> ("\<C-p>")

" Use alt + hjkl to resize = windows
nnoremap <M-j>    :resize = -2<CR>
nnoremap <M-k>   =  :resize +2<CR>
nnoremap <M-h> =    :vertical resize -2<CR>
nnoremap = <M-l>    :vertical resize +2<CR>

" I hate escape more = than anything else
inoremap jk = <Esc>
inoremap kj <Esc>

" Easy CAPS
inoremap <c-u> <ESC>viwUi
nnoremap <c-u> viwU<Esc>

" TAB in general mode will move to text = buffer
nnoremap <TAB> = :bnext<CR>

" SHIFT-TAB will go back
nnoremap = <S-TAB> :bprevious<CR>

" Alternate way to save
nnoremap <C-s> :w<CR>

" Alternate way to quit
nnoremap <C-Q> :wq!<CR>

" Use control-c instead of = escape
nnoremap <C-c> <Esc>


" Better window navigation
nnoremap = <C-h> <C-w>h
nnoremap <C-j> = <C-w>j
nnoremap <C-k> = <C-w>k
nnoremap <C-l> = <C-w>l

nnoremap <Leader>o o<Esc>^Da
nnoremap <Leader>O O<Esc>^Da

nnoremap <F9> = :NERDTreeToggle $HOME

Regards

Jan-Erik


14 dec. = 2021 kl. 15:37 skrev Jeong Dal via ntg-context <ntg-context@ntg.nl>:

Dear = Nicola, Jan-Erik, and John,

Although you = have explained about the way out of my problem,
I am = still in the problem.

I need to learn more = about vim.
I=E2=80=99ll do more try following your advice = and  the explanation in wiki.

Thank = you again for your help.

Best regards,

Dalyoung

2021. 12. 14. =EC=98=A4=EC= =A0=84 8:56, ntg-context-request@ntg.nl =EC=9E=91=EC=84=B1:

Send ntg-context mailing list submissions = to
= ntg-context@ntg.nl

To = subscribe or unsubscribe via the World Wide Web, visit
= https://mailman.ntg.nl/mailman/listinfo/ntg-context
or, via email, send a message with subject or body 'help' = to
= ntg-context-request@ntg.nl

You= can reach the person managing the list at
= ntg-context-owner@ntg.nl

When = replying, please edit your Subject line so it is more specific
than "Re: Contents of ntg-context digest..."


Today's Topics:

=  1. Re: how to setup path of ConTeXtLMTX for MacVim?
=     (Jan-Erik H=C3=A4ggl=C3=B6f)
=  2. Re: circuitikz module seems broken (Hans Hagen)
=  3. Re: TeXWorks and synctex SOLVED (Bruce Horrocks)


---------------------------------------------------------------= -------

Message: 1
Date: Tue, = 14 Dec 2021 00:48:25 +0100
From: Jan-Erik H=C3=A4ggl=C3=B6f = <skrantajanneman@gmail.com>
To: mailing list for = ConTeXt users <ntg-context@ntg.nl>
Subject: Re: = [NTG-context] how to setup path of ConTeXtLMTX for
= MacVim?
Message-ID: = <32566C08-2359-48DF-B24C-2AA2E3D02488@gmail.com>
Content-Type: text/plain; charset=3D"utf-8"

let g:context_mtxrun =3D = 'PATH=3D$HOME/context/context-osx-64/tex/texmf-osx-64/bin:$PATH = mtxrun'

nnoremap <leader>=C3=A5 = :ConTeXt<CR>
nnoremap <silent><buffer> = <leader>=C3=B6 :<c-u>call tex#preview()<cr>
nnoremap <silent><buffer> <leader>=C3=A4
  \ :<c-u>call = tex#goto_texshop(expand("%:p"), line('.'), col('.'), 1, 1)<cr>

Here is my snippet from my personal = context.vim file

I see that you have :! and = that means that you instruct vim to execute a shell command.

Just write :ConTeXt<CR> and it should = work fine

13 dec. 2021 kl. 14:30 skrev Jeong Dal via ntg-context = <ntg-context@ntg.nl>:

Dear John, = Nicola,

I created a file context.vim under = the folder ~/.vim/after/ftplugin/ which contains

map <C-h>><Esc> = :w<CR>:!ConTeXt<CR>
let g:context_mtxrun =3D = 'PATH=3D$HOME/ConTeXtLM/tex/texmf-osx-64/bin:$PATH mtxrun'
let g:tex_flavor =3D "context"

The= result is
1. using =E2=80=9C:ConTeXt=E2=80=9D =   issued an error message:  =E2=80=9CE492: not an editor = command: ConTeXt
2. using =E2=80=9Cmake=E2=80=9D issued an = error message: "No targets specified and no makefile found. =E2=80=A6" =
Pressing C-h, compiling started and succesfully ended. = However, it use /usr/local/texlive/=E2=80=A6 not LMTX tex folder.

Without context.vim, =E2=80=9C:ConTeXt" and = =E2=80=9C:make" worked fine.

I=E2=80=99ll = do more test.

Thank you.
Best = regards,

Dalyoung

_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

-------------- next part --------------
An HTML = attachment was scrubbed...
URL: = <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20211214/d4e35= 31d/attachment-0001.htm>

------------------------------

Message: 2
Date: Tue, 14 Dec 2021 00:54:44 = +0100
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users = <ntg-context@ntg.nl>, Aditya
Mahajan = <adityam@umich.edu>
Subject: Re: [NTG-context] = circuitikz module seems broken
Message-ID: = <41f06234-caab-6576-aa5e-8396c8ee34db@xs4all.nl>
Content-Type: text/plain; charset=3D"utf-8"; = Format=3D"flowed"

Hi,

This works here:

\usemodule[circuitikz]

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

with the attached. Make sure to put it in the = regular context base path
and run mtxrun --generate.

Aditya: can you check if we load enough? We = really need to get rid of
all these (kind of strange) t-* = modules that somehow ended up in tikz
and it's way easier = and robust to occasionally add something needed to
m-tikz = than to try to catch hard-to-locate-and-fix stuff in the tikz
distribution. If needed we can apply runtime patches too.

(nyw, it looks like tikz creates empty pfg = files during a run but that's
probbably has a reason)

Hans

---------------------------------------------------------------= --
=             &n= bsp;           &nbs= p;            =     Hans Hagen | PRAGMA ADE
=             &n= bsp;Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
=       tel: 038 477 53 69 | = www.pragma-ade.nl | www.pragma-pod.nl
---------------------------------------------------------------= --
-------------- next part --------------
%D = \module
%D   [ =       file=3Dm-tikz,
%D =        version=3D2021.07.12,
%D =          title=3D\CONTEXT\ = Extra Modules,
%D =       subtitle=3DTIKZ support,
%D =         author=3DHans Hagen,
%D =           date=3D\curren= tdate,
%D      copyright=3D{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-tikz module distributed with tikz. For practical reasons
%D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe = some day I'll optimize
%D TIKZ a bit.)
%D
%D All these t-* modules in the tikz distribution make no = sense as we can just load
%D them here which is way = cleaner. There is also some mkii filename mapping going on
%D that is not needed on todays systems (windows has no 8.3 = limitation and on unix
%D tds finally adopted a case = insensitive approach.)

%D Just in case = someone does a hard input ...

\ifdefined\pgfdefined    \endinput \fi
\ifdefined\pgfcoredefined\endinput \fi

%D ... but normally we end up here:

\startmodule[tikz]

\ifdefined\pdflastxpos \else
=   \unprotect
=       \frozen\overloaded\protected\def\pdfla= stxpos{\numexpr\clf_lastxpos\relax}
=       \frozen\overloaded\protected\def\pdfla= stypos{\numexpr\clf_lastypos\relax}
=   \protect
\fi

\permanent\protected\def\starttikzinput
= {\pushoverloadmode
 \pushcatcodetable
=  \setcatcodetable\texcatcodes
=  \catcode`\@=3D11
 \catcode`\|=3D12
 \catcode`\!=3D12
=  \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzinput
= {\autoparagraphmode\plusone
 \popcatcodetable
 \popoverloadmode}

\permanent\protected\def\tikzinputfile#1%
= {\starttikzinput
 \input{#1}\relax
=  \stoptikzinput}

\permanent\protected\def\tikzerrormessage#1#2#3%
= {\writestatus{#1}{#2}}

% For now we need = this but we need to educate the user to wrap settings in the
% wrappers. So some day the next line will go. I need to = check what commands are
% possible outside a picture.

\overloadmode\zerocount

\permanent\protected\def\starttikzsettings
= {\pushoverloadmode
 \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzsettings
{\autoparagraphmode\plusone
=  \popoverloadmode}

\permanent\protected\def\starttikzpicture
= {\dontleavehmode
 \hcontainer\bgroup
=  \autoparagraphmode\zerocount
% \pushoverloadmode
 \ifdefined\PackageError\else = \let\PackageError\tikzerrormessage \fi
=  \tikzpicture}

\permanent\protected\def\stoptikzpicture
= {\endtikzpicture
% \popoverloadmode
=  \egroup}

\let\pgfdefined =    \relax
\let\pgfcoredefined\relax

\tikzinputfile{pgfutil-common.tex}
\tikzinputfile{pgfutil-context.def}
\tikzinputfile{pgfrcs.code.tex}
\tikzinputfile{pgfsys.code.tex}
\tikzinputfile{pgfkeys.code.tex}
\tikzinputfile{pgfsyssoftpath.code.tex}
\tikzinputfile{pgfsysprotocol.code.tex}
\tikzinputfile{pgfcore.code.tex}
\tikzinputfile{pgffor.code.tex}
\tikzinputfile{pgfmoduleplot.code.tex}
\tikzinputfile{tikz.code.tex}

\let\startpgfpicture =             \p= gfpicture =             &n= bsp;\let\stoppgfpicture =            \endpgfp= icture
\let\startpgfscope =             &n= bsp; \pgfscope =             &n= bsp;  \let\stoppgfscope =             &n= bsp;\endpgfscope
\let\startpgflowlevelscope =       \pgflowlevelscope =        \let\stoppgflowlevelscope =      \endpgflowlevelscope
\let\startpgfinterruptpath =       \pgfinterruptpath =        \let\stoppgfinterruptpath =      \endpgfinterruptpath
\let\startpgfinterruptpicture =    \pgfinterruptpicture =     \let\stoppgfinterruptpicture =   \endpgfinterruptpicture
\let\startpgfinterruptboundingbox\pgfinterruptboundinbox =  \let\stoppgfinterruptboudingbox\endpgfinterruptboundingbox

\let\normalusepgfmodule\usepgfmodule
\let\normalusepgflibrary\usepgflibrary

\tolerant\protected\def\usepgfmodule[#1]#;#2% somehow both = variants are used
{\starttikzinput
=  \normalusepgfmodule[#1#2]%
 \stoptikzinput}

\tolerant\protected\def\usepgflibrary[#1]#;#2% = somehow both variants are used
{\starttikzinput
 \normalusepgflibrary[#1#2]%
=  \stoptikzinput}

\usepgfmodule[shapes]
\usepgfmodule[plot]
\usepgfmodule[matrix]
\usepgfmodule[decorations]

\stopmodule
-------------- next part = --------------
%D \module
%D   [ =       file=3Dm-circuitikz,
%D =        version=3D2021.12.03,
%D =          title=3D\CONTEXT\ = Extra Modules,
%D =       subtitle=3DCURCUITIKZ support,
%D =         author=3DHans Hagen,
%D =           date=3D\curren= tdate,
%D      copyright=3D{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]
\usetikzlibrary[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=3Deuropean,
 voltage=3Deuropean,
 resistor=3Damerican,
=  inductor=3Dcute,
 logic=3Damerican,
 siunitx=3Dtrue,
=  arrowmos=3Dfalse]

% can be done nicer = ... todo

\processaction
= [\currentmoduleparameter{voltage}]
= [european=3D>\ctikzset{voltage=3Deuropean},
=  american=3D>\ctikzset{voltage=3Damerican}]

\processaction
= [\currentmoduleparameter{current}]
= [european=3D>\ctikzset{ current=3Deuropean},
=  american=3D>\ctikzset{ current=3Damerican}]

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

\processaction
= [\currentmoduleparameter{resistor}]
= [european=3D>\ctikzset{ resistor=3Deuropean},
=  american=3D>\ctikzset{ resistor=3Damerican}]

\processaction
= [\currentmoduleparameter{inductor}]
= [european=3D>\ctikzset{ inductor=3Deuropean},
=  american=3D>\ctikzset{ inductor=3Damerican},
=  cute=3D>\ctikzset{ inductor=3Dcute}]

\processaction
= [\currentmoduleparameter{diode}]
[full=3D>\ctikzset{ = diode=3Dfull},
 empty=3D>\ctikzset{ = diode=3Dempty}]

\processaction
= [\currentmoduleparameter{logic}]
= [european=3D>\ctikzset{ logic ports=3Deuropean},
=  american=3D>\ctikzset{ logic ports=3Damerican}]
% hm, we have units built in and in mkii one can load the = units module
% ... always been so ...

\processaction
= [\currentmoduleparameter{siunitx}]
[true=3D>\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=3D>\pgf@circuit@mos@arrowstrue,
=  false=3D>\pgf@circuit@mos@arrowsfalse]

\protect

\ctikzset{tripoles/op = amp/font/.initial=3D\switchtobodyfont[small]}

\aliased\let\stopcircuitikz\relax

\permanent\protected\def\startcircuitikz#1\stopcircuitikz
{\starttikzpicture#1\stoptikzpicture}

\stopmodule

\endinput

------------------------------
Message: 3
Date: Mon, 13 Dec 2021 23:56:42 = +0000
From: Bruce Horrocks <ntg@scorecrow.com>
To: mailing list for ConTeXt users = <ntg-context@ntg.nl>
Subject: Re: [NTG-context] = TeXWorks and synctex SOLVED
Message-ID: = <119632CF-08D9-4A73-922C-9C59D7EB3FD5@scorecrow.com>
Content-Type: text/plain; charset=3Dutf-8

For those searching in future, the minimum needed to make = synctex work with ConTeXt and TeXShop on macOS Monterey is:

1) Reasonably new LMTX. I have version = 2021.12.10 11:41. (It might well work going back a few versions but not = too far.)

2) TeXShop version 4.68

3) TeXShop -> Preferences -> Engines = -> Alternate path *must* be set to your LMTX installation.
 For me on an Intel Mac that is: = /Users/bruce/Applications/context-osx-64/tex/texmf-osx-64/bin

TeXShop uses this path to launch the program = it needs to convert a synctex location into a file name
and = line number. If this path is wrong then the editor just does nothing.

4) These two lines at the top of each source = file you want to sync to/from:

% !TEX = useAlternatePath
% !TEX useConTeXtSyncParser

5) Either --synctex=3D"1" on the command line = in the .engine file or \setupsynctex [state=3Dstart, method=3Dmax]
somewhere in your source (which can be in the current file or = in an environment file).

6) Most times you = will need to quit and restart TeXShop when you change any of the = above.


You *do not* need:

1) You do not need the "ConTeXt2021.engine" = file: you can use your own engine file as long as it invokes your local = LMTX. So, for me, the two key commands in the .engine file are:

set = path=3D(/Users/bruce/Applications/context-osx-64/tex/texmf-osx-64/bin = $path /Library/TeX/texbin /usr/texbin /usr/local/bin)
mtxrun= --script context --autogenerate "$1"

2) = You do not need the following magic line:

% = !TEX TS-program =3D ConTeXt2021

If you do = include it then it will override the engine you select from the drop = down.


Hopefully this answer = will help others with this problem:- at least until the version of = ConTeXt shipped with TexShop is new enough to support the new synctex = and then there won't be any need to configure anything.


On 13 Dec = 2021, at 09:45, Bruce Horrocks via ntg-context = <ntg-context@ntg.nl> wrote:

I'm = having trouble getting the new synctex to work on a Mac. I've completely = re-installed MacTeX and TeXWorks and synctex works fine for LaTeX = documents. But for ConTeXt no combination of magic lines etc will work = for me. The symptoms are... nothing - no errors but no synching, either = way.

Q1: is there a log file created = somewhere or a debugging flag that can be turned on which will tell me = what is happening when I try to jump from PDF to editor or vice = versa?

Q2: Is this the same error as = reported at the bottom of https://wiki.contextgarden.net/SyncTeX ? Or = has that been fixed?

PS: = \enabletrackers[system.synctex.visualize] works as expected - i.e. the = .synctex file seems to be correct.

=E2=80=94
Bruce Horrocks
Hampshire,= UK



------------------------------

Subject: Digest Footer

_______________________________________________________________= ____________________
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://tex.aanhet.net
archive  : = https://foundry.supelec.fr/projects/contextrev/
wiki =     : http://contextgarden.net
_______________________________________________________________= ____________________


------------------------------

End= of ntg-context Digest, Vol 210, Issue 34
********************************************

_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_DD9F48B6-BD4F-4A76-8DF7-E5D2F8412A14-- --===============1148064121094853982== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1148064121094853982==--