Document ClassesHelp with circ's \whatI

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
jm^2
Posts: 3
Joined: Tue Sep 02, 2008 7:48 pm

Help with circ's \whatI

Post by jm^2 »

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)

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Help with circ's \whatI

Post by localghost »

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¹
jm^2
Posts: 3
Joined: Tue Sep 02, 2008 7:48 pm

Help with circ's \whatI

Post by jm^2 »

Minimum "Working" Example (actually does not work but I think this is what is asked for based on the reference page)

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}
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.
Post Reply