Unexpected Parsing Failure in circuit-macros When Rendering TikZ-Based Diagrams

Bug #2132098 reported by Sana Mugal
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
circuit-macros (Ubuntu)
New
Undecided
Unassigned

Bug Description

I’m experiencing a consistent parsing failure when using circuit-macros to generate diagrams that include mixed TikZ/DPic elements. The issue started after a recent Ubuntu package update for dpic and groff. Prior to the update, the same files rendered correctly.

The error appears during processing and prevents the output EPS/PDF on my website https://magictv.com.co from being generated.

Steps to Reproduce

Create a minimal test file (example below):

.PS
include(libcct.m4)
includepstricks
cct_init

T: transistor(up_)
line right 0.5
box wid 1 ht 0.4 "TEST"

.PE

Run:

dpic -p input.pic > output.tex

Compile with pdflatex or lualatex.

Expected Behavior

The diagram should compile normally, generating a valid LaTeX/TikZ output file from dpic without syntax or macro expansion errors.

Actual Behavior

Compilation fails with the following (or similar) message:

dpic: fatal: unexpected token near 'box wid 1 ht 0.4'
dpic: error: failed to process pic code generated by circuit-macros

Additional Observations

Rolling back dpic to an older version resolves the issue.

The same .pic file works correctly on Debian 12 and Arch Linux with the previous dpic release.

The error occurs even with minimal examples, suggesting a macro-interpretation conflict rather than a file-specific syntax problem.

The problem may be related to recent changes in how dpic handles dimension parsing or macro expansions in the included libcct.m4.

System Information

OS: Ubuntu 24.04 LTS

Package: circuit-macros 20230312-2

dpic version: 2024.02.01

TeX engine: TeXLive 2024 (LuaLaTeX & PDFLaTeX both tested)
Addition:
I have tried my best to get help through FESCO Online Bill Compnay and visit their official website (https://fescoonlinebil.pk)

Request

Could the maintainers verify whether recent dpic changes introduced a breaking behavior for circuit-macros?
If needed, I can provide additional sample diagrams or logs.

Revision history for this message
Akash Bhatti (hashim3995) wrote (last edit ):

I found My Aadhaar Portal really helpful for quickly checking Aadhaar updates and managing basic services without any confusion. visit here https://myaadhaarlogin.com

description: updated
Revision history for this message
Akash Bhatti (hashim3995) wrote (last edit ):

Massar Service https://massarservic.com is a useful and reliable platform that explains Massar portal information in a simple and clear way. It provides step-by-step guidance for students and parents, making tasks easy and hassle-free. visit now https://massarservic.net

Revision history for this message
Akash Bhatti (hashim3995) wrote :

Massar Service https://massarservic.com is a useful and reliable platform that explains Massar portal like My Aadhaar https://myaadhaarlogin.com information in a simple and clear way. It provides step-by-step guidance for students and parents, making tasks easy and hassle-free. visit now https://massarservic.net

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.