Document Classes ⇒ Help with circ's \whatI
Help with circ's \whatI
I can't seem to figure out what I need to do to get this one to work. According to the manual its \whatI number text direction, eg. I think it should be \whatI2 {some text} r for a right-directed current arrow. I've tried both upper and lower case direction modifiers without luck. The compiler keeps returning "Missing \endcsname inserted. <to be read again> \egroup" When I use the goto error feature it takes me to my \end{circuit} statement. I have commented out the offending code and everything else in the circuit that I have defined works correctly. Any suggestions would be welcome. (using TeXshop 2.14 on a Mac)
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Help with circ's \whatI
Long descriptions can't replace a good piece of code in the sense of a minimal working example (MWE). Reduce your problem to a minimum according to the hints on the linked page. This makes us see the possible error or the source of the undesired behaviour directly in the code. If necessary, post the complete log file a attachment.
Best regards
Thorsten¹
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Help with circ's \whatI
Minimum "Working" Example (actually does not work but I think this is what is asked for based on the reference page)
BTW, from the code you should see that I found the solution. There is a grave error in the circ documentation. In the appendix, for SX type symbols it states an incorrect parameter set. It should be number_text_pin_direction. Thanks for the suggestions and replies.
Code: Select all
\documentclass[12pt,epic,eepic]{report}
\usepackage[basic,box,optics]{circ}
\usepackage[outside]{coordsys}
\usepackage[all]{xy}
\xyoption{arc}
\newcommand{\subscript}[1]{\ensuremath{_{\textsf{#1}}}}
\begin{document}
\begin{figure}[ht!]
\centering
\begin{circuit}2
%include a current arrow as per manual
\whatI1 {I} l %this does not work
%include a current arrow figured out by trial and error
\whatI2 {I} s r
\end{circuit}
\end{figure}
\end{document}