here some instructions to create a schematic and run a ngspice transient sim in XSCHEM:
<ol>
<li>Build and install xschem from svn head.</li>
<li>Create some empty directory (in my examples i use ~/x)</li>
<li>cd ~/x</li>
<li>~/bin/xschem rlc.sch (use the actual xschem install path). xschem will warn you that the rlc.sch file does not exist. No problem.</li>
<li>Press Insert key</li>
<li>Navigate in the file selector to .../share/xschem/xschem_library/devices</li>
<li>Select 'capa.sym' and press 'Open'</li>
<li>Select the capacitor, press 'm' and place it somewhere</li>
<li>Press 'Insert' again and place 'res.sym' and then again 'ind.sym'</li>
<li>Again, press 'Insert' and place 'vsource_arith.sym'</li>
<li>By selecting (left btn click) and moving ('m') place the components like in this picture:</li>
<imgsrc="tutorial_run_simulation_01.png">
<li>Press the right mouse button on the capacitor and set its 'value=' attribute to 50nF:</li>
<imgsrc="tutorial_run_simulation_02.png">
<li>Do the same for the inductor (10mH) and the resistor (1k)</li>
<li>Set the voltage source VOL to: "'3*cos(time*time*time*1e11)'" (include quotes, single and double):</li>
<imgsrc="tutorial_run_simulation_03.png">
<li>Pressing the 'w' key and moving the mouse you draw wires, wire the components as shown (press 'w', move the mouse and click, this draws a wire segment):</li>
<imgsrc="tutorial_run_simulation_04.png">
<li>Press 'Insert key and place one instance of 'lab_pin', then use the right mouse button to change its 'lab' attribute to A:</li>
<li>Move the label as shown, (you can use 'Shift+F' to flip and 'Shift+R' to rotate), then using 'c' copy this pin label and edit attributes to create the B and C labels, place all of these as shown:</li>
<li>Select the 'C' label and copy it as shown here, set its lab attribute to 0 (this will be the 0V (gnd node))</li>
<imgsrc="tutorial_run_simulation_07.png">
<li>Press 'Insert key, place the 'code.sym' symbol, set name and value attributes as follows:</li>
<imgsrc="tutorial_run_simulation_08.png">
<li>Cosmetics: add 'title.sym' move the circuit (by selecting it dragging the mouse and pressing 'm', if needed). Note that you can do a 'stretch move'operation if you need move components keeping the wires attached; refer to the xschem manual <ahref="http://repo.hu/projects/xschem/xschem_man/commands.html">here</a></li>
<imgsrc="tutorial_run_simulation_09.png">
<li>The circuit is ready for simulation: press 'netlist' the 'rlc.spice' will be generated in current dir.</li>
<li>If ngspice is installed on the system press 'Simulate':</li>
<li>In the simulator window type 'plot a b c':</li>
<imgsrc="tutorial_run_simulation_10.png">
<li>If you set 'Simulation -> Configure simulators and tools -> Ngspice Batch' and press 'Simulate' again the sim will be run in batch mode, a 'rlc.raw' file will be generated and a 'rlc.out' file will contain the simulator textual output.</li>