Git Product home page Git Product logo

pst-optexp's Introduction

------------------------------------------------------------------------
The pst-optexp package --- Drawing optical experimental setups
Maintained by Christoph Bersch
E-mail: [email protected]
Released under the LaTeX Project Public License v1.3c or later
See http://www.latex-project.org/lppl.txt
------------------------------------------------------------------------

The package pst-optexp is a collection of optical components that 
facilitate easy sketching of optical experimental setups. A lot of 
different free-ray and fiber components are provided, which alignment, 
positioning and labelling can be achieved in very simple and flexible 
ways. The components can be connected with fibers or beams, realistic 
raytraced beam paths are also possible.

Installation
------------

The package is supplied in dtx format and as a pre-extracted zip file,
pst-optexp.tds.zip. The later is most convenient for most users: simply
unzip this in your local texmf directory and run texhash to update the 
database of file locations. The pst-optexp package is also contained in
MiKTeX and TeX Live distributions. If you want to unpack the dtx 
yourself you must run "tex pst-optexp.ins", to typeset the documentation
run "latex pst-optexp.dtx".

The package requires recent version of pst-node, multido, pstricks-add,
pst-eucl, and environ.

pst-optexp's People

Contributors

cbersch avatar

Stargazers

pip7 avatar  avatar  avatar  avatar flloaers avatar Maximilian Winter avatar Ewan Douglas avatar Schrodingers Cat Food avatar nickersonm avatar le Duc Banal avatar  avatar Jan Kundrát avatar Joona Rissanen avatar Kivanc Esat avatar Congli Wang avatar Luc avatar Thibaud Ruelle avatar  avatar  avatar Wolfgang Schlichtner avatar Till Stensitzki avatar

Watchers

 avatar  avatar Wolfgang Schlichtner avatar

pst-optexp's Issues

\optpoint

it would be nice if there was also a \optpoint (as starting point) which would allow to define a beam divergence angle for \drawwidebeam

Unable to use version 4.10

Hi Christoph,

i've installed the following actual versions:
pst-optexp 4.10 2014-06-04
pst-node 1.33 2014-03-25
multido 1.42 2010-05-14
pstricks-add.tex 3.73 2014-06-16
pst-eucl.tex 1.51 2014/05/17
ENVIRON v0.2

  1. Problem is, that only the objects (mirrors, optbox, lenses) are printed but no beam with \drawbeam(A){1}{2}
  2. The text "test" after \drawbeam was not printed. After commented out the \drawbeam command the text "test" was printed

Example:

\begin{pspicture}showgrid(3,3.3)
\pnode(0,2.5){A}\pnode(2,2.5){B}\pnode(2,1.5){C}
\mirrorlabelangle=-45(B)(C){M}
\optboxposition=start, labeloffset=0,
labelref=relative
(B){box}
\drawbeam(A){1}{2}
\end{pspicture}
test

Output:

pst-optexp

Kind Regards
Claus

Beamsplitter cube rotated

The beamsplitter cube is rotated by 45 degrees.
image

It should look like this (section 4.20 from the manual):
image

Source:

\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(3,2)
    \beamsplitter[beam,bsstyle=cube,](0,1)(2,1)(2,0){BS}
\end{pspicture}
\end{document}

Built on a fairly recent miktex install. In particular, I have v6 of pst-optext.

Log file: pst-optexp.log

Bug when using oapmirror

Hi,
I am using pst-optexp for experiment diagram. I found a problem when using oapmirror. The following code reproduce this:

\documentclass{article}
\usepackage{pst-optexp}
\begin{document}
	\begin{pspicture}[showgrid](8,2)
    	\pnode(5.0,0.9){In}
    	\pnode(1.0,1.0){OAP}
    	\pnode(7.0,1.0){F}
    	\oapmirror[compname=OAP1](In)(OAP)(F)
    	\drawwidebeam[beamwidth=.2](In){OAP1}(F)
	\end{pspicture}
\end{document}

The output is
image
which is not expected.

If the coordinate of {In} is changed to (5.0,1.0), nothing appears. If the coordinate of {In} is changed to (5.0,1.1), the result is correct. It seems this problem appears when the vertical coordinate of {In} is below {OAP}. Would you check this? Thanks a lot!

Ming

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.