Discussion:
plotting arcsin(x)
Yannick
2006-11-13 16:41:45 UTC
Permalink
Hi there,
I tried to plot the function sin(arcsin(x)+pi/4) in LaTeX, but I get the
wrong graph. I plotted already many function like
tan(x) exp(x) and it all worked fine. Here is the code:

\documentclass[a4 paper]{article}
\usepackage{amsmath}
\usepackage{pstricks,pstricks-add}
\begin{document}

\begin{pspicture*}(-2,-2)(4,4)
\psset{algebraic=true}
\psaxes{->}(0,0)(-2,-2)(4,4)
\psplot{-1}{1}{arcsin(x)} !!!!!
\end{pspicture*}
\end{document}
does NOT give the right graph

the SAME with
"\psplot{-1}{1}{sin(x)}"
instead of
"\psplot{-1}{1}{arcs(x)}"
DOES give the right graph


I also tried to type in "asin" like in the documentation of
"pstricks-add", but this results in an error massage.
Does anybody know how to solve the problem?




Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/TeXnicCenter-Users/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/TeXnicCenter-Users/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:TeXnicCenter-Users-digest-***@public.gmane.org
mailto:TeXnicCenter-Users-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
TeXnicCenter-Users-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Kristof Möller
2006-11-14 00:10:00 UTC
Permalink
Hi Yannick,

this code works for me, but there seems to be an error
if one uses VarStep=true together with \psplot{-1}{1}{asin(x)}.

\documentclass[a4paper]{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture*}(-2,-2)(2,2)
\psset{algebraic=true}
\psaxes{<->}(0,0)(-2,-2)(2,2)
\psplot[linecolor=red]{-1}{1}{asin(x)}
\psplot[linecolor=blue]{-1.7}{1.7}{sin(x)}
\end{pspicture*}
\end{document}

Greetings

Kristof


Yannick schrieb:
> Hi there,
> I tried to plot the function sin(arcsin(x)+pi/4) in LaTeX, but I get the
> wrong graph. I plotted already many function like
> tan(x) exp(x) and it all worked fine. Here is the code:
>
> \documentclass[a4 paper]{article}
> \usepackage{amsmath}
> \usepackage{pstricks,pstricks-add}
> \begin{document}
>
> \begin{pspicture*}(-2,-2)(4,4)
> \psset{algebraic=true}
> \psaxes{->}(0,0)(-2,-2)(4,4)
> \psplot{-1}{1}{arcsin(x)} !!!!!
> \end{pspicture*}
> \end{document}
> does NOT give the right graph
>
> the SAME with
> "\psplot{-1}{1}{sin(x)}"
> instead of
> "\psplot{-1}{1}{arcs(x)}"
> DOES give the right graph
>
>
> I also tried to type in "asin" like in the documentation of
> "pstricks-add", but this results in an error massage.
> Does anybody know how to solve the problem?
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
Polina Minkovski
2006-11-14 05:35:05 UTC
Permalink
hi there,

quick question (hopefully) - I'm trying to compile a journal...so i \include the chapters and the bibliographies...I tried using book, memoir and report classes and it always creates empty pages between chapters (I think it adds a page to each bibliography) and after endless searches online, I can't manage to make the table of contents include author names...it just includes the chapter title and that's it. Should I try the tocloft package?

thanks in advance

Polina


---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.
Ruediger Stuible
2006-11-14 06:46:13 UTC
Permalink
On 13 Nov 2006 at 21:35, Polina Minkovski wrote:

> after endless searches
> online, I can't manage to make the table of contents include
> author names...

There is an optional argument to the chapter command which contains
the text that will appear in the table of contents as well as in the
page headers. Use it like \chapter[Title - Author]{Title}.
Polina Minkovski
2006-11-14 15:54:32 UTC
Permalink
thanks,
but how do you get rid of the empty pages between the input files?

Ruediger Stuible <rstu-***@public.gmane.org> wrote:
On 13 Nov 2006 at 21:35, Polina Minkovski wrote:

> after endless searches
> online, I can't manage to make the table of contents include
> author names...

There is an optional argument to the chapter command which contains
the text that will appear in the table of contents as well as in the
page headers. Use it like \chapter[Title - Author]{Title}.





---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
Yannick
2006-11-14 17:24:59 UTC
Permalink
Hi Polina,
you can't get rid of the empty pages, when you use the "\include"
command. It doesn't work without these pages. If you don't want
these emptypages, you can use the "\input" command instead. But then,
you won't be able to use the "\includeonly" command and some other
features of the "\include" command.
For large documents (like books) I would recommend you, to stick with it
and just accept the empty pages.
But if you absolutely don't want them, you could also write your
document with "\include" and for printing just use "\input".

The "\input" command works like hte "\include" command.

Hope this was helpful,

Yannick
T.T.J. Pleizier
2006-11-14 18:00:40 UTC
Permalink
Empty pages might be the result of the twoside option in memoir.
`Twoside' adds an empty pages so that every new chapter starts on a
recto (right faced) page; the option `twoside' is default in calling
memoir. This is according to received standards in typography. See the
excellent introduction in typographical matters in the manual that goes
with memoir. You can get rid of these empty pages when you use the
`oneside' option, see the minimal example below:

\documentclass[oneside]{memoir}
\begin{document}
\chapter{This is a chapter}
\chapter{This is another chapter}
\chapter{And yet another}
\end{document}

You might consider using the options `openleft' etc. to force LaTeX to
start a new chapter on a verso page (also `openright' or `openany').

happy TeXing,
Theo.

Yannick schreef:

> Hi Polina,
> you can't get rid of the empty pages, when you use the "\include"
> command. It doesn't work without these pages. If you don't want
> these emptypages, you can use the "\input" command instead. But then,
> you won't be able to use the "\includeonly" command and some other
> features of the "\include" command.
> For large documents (like books) I would recommend you, to stick with it
> and just accept the empty pages.
> But if you absolutely don't want them, you could also write your
> document with "\include" and for printing just use "\input".
>
> The "\input" command works like hte "\include" command.
>
> Hope this was helpful,
>
> Yannick
>
>
Polina Minkovski
2006-11-16 16:41:32 UTC
Permalink
thanks for all of the advice - I ended up changing all the 'chapters' to sections, etc...and the empty pages weren;t an issue anymore...

as far as getting multiple indices in a document - I tried the \usepackage{index} and the \usepackage{multind} (one at a time) and the document prints only the main index for the first package and just the titles for the second one.

I think i know why the \usepackage doesn't make the 'names' index....I need to find out how to make the .aut and .and index as well as the .ind ....any ideas?

Polina


"T.T.J. Pleizier" <ttjpleizier-rJAIWvhRp0Dz+***@public.gmane.org> wrote:
Empty pages might be the result of the twoside option in memoir. `Twoside' adds an empty pages so that every new chapter starts on a recto (right faced) page; the option `twoside' is default in calling memoir. This is according to received standards in typography. See the excellent introduction in typographical matters in the manual that goes with memoir. You can get rid of these empty pages when you use the `oneside' option, see the minimal example below:

\documentclass[oneside]{memoir}
\begin{document}
\chapter{This is a chapter}
\chapter{This is another chapter}
\chapter{And yet another}
\end{document}

You might consider using the options `openleft' etc. to force LaTeX to start a new chapter on a verso page (also `openright' or `openany').

happy TeXing,
Theo.

Yannick schreef: Hi Polina,
you can't get rid of the empty pages, when you use the "\include"
command. It doesn't work without these pages. If you don't want
these emptypages, you can use the "\input" command instead. But then,
you won't be able to use the "\includeonly" command and some other
features of the "\include" command.
For large documents (like books) I would recommend you, to stick with it
and just accept the empty pages.
But if you absolutely don't want them, you could also write your
document with "\include" and for printing just use "\input".

The "\input" command works like hte "\include" command.

Hope this was helpful,

Yannick








---------------------------------
Sponsored Link

Mortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo - Calculate new house payment
Polina Minkovski
2006-11-22 22:36:58 UTC
Permalink
hi,

whenever i make a table of contents, the page after it slides...on to the headings and comes out warped...is that a glitch? or is there something I can do to format the ToC?

Also, for some reason, the table of contents doesn't cite the correct first page of the chapters. I request a \thispagestyle{empty} on the first page of each chapter so as to avoid page numbers...and the table of contents states that the chapter starts one page AFTER the title page of the chapter itself.... is there anything I can do about that?

thanks

polina


---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
Arek Kuźniewski
2006-11-23 00:26:14 UTC
Permalink
Polina Minkovski napisał(a):

> whenever i make a table of contents, the page after it slides...on to
the headings and comes out warped...is that a glitch? or is there
something I can do to format the ToC?

What document do you compose/compile (is it text document LaTeX=>PS or
LaTeX=>PDF, or the slideshow in pdf - LaTeX=>PDF)? Which packages do you
use? Do you resize the page, or change any parameters (like \topmargin,
\textwidth)?

Give us your preamble for example.

> Also, for some reason, the table of contents doesn't cite the correct
first page of the chapters. I request a \thispagestyle{
> empty} on the first page of each chapter so as to avoid page
numbers...and the table of contents states that the chapter starts one
page AFTER the title page of the chapter itself.... is there
> anything I can do about that?

Where do you put the \thispagestyle{empy}? Give us some fragment of
code to verify.

I made a example document (text document LaTeX=>PS), like below, and
everything looks ok:
----------------------
\documentclass{report}

\begin{document}
\tableofcontents

\pagebreak
\chapter{a}
\thispagestyle{empty}
snndnssf
sfsf
sf

sf
fsd

\newpage
dddd

\chapter{b}
\thispagestyle{empty}

sdsdsddssd
\newpage

sddsds

\end{document}
----------------------

Greetings, Arek

--
This message was scanned for viruses by BitDefender for Linux Mail Servers.
For more information please visit http://www.bitdefender.com/
Polina Minkovski
2006-11-26 00:32:08 UTC
Permalink
hi

just wondering about NATBIB - when you use the 'apalike' style file (.bst) for the bibliography, it for some reason doesn't input more than 2 authors per citation (ie. If you have three authors in a reference, and citet{key} - it includes the first two authors and not the third)...is there something I can do about that?

similarly....I like the apalike style...but want to have quotations around the 'article' titles...is there a way to modifty the style? because otherwise, natbib doesn't have any other (known to me) styles that are similar...

thanks in advance

Polina


---------------------------------
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
Alain Delmotte
2006-11-26 08:55:20 UTC
Permalink
Hi,

I think it is defined in the apalike style to show only 2 authors.
Doesn't it show et "al." when there are more?

For an apalike style with quote, you could have a look at the harvard
group of styles, in particular "agsm" (no option like apalike in the
\documentclass line, use of natbib and agsm bibliographystyle).

If, eventually, you do not find your style, you can create it yourself
using the "custom-bib" system.

Alain Delmotte

Polina Minkovski a écrit :
> hi
>
> just wondering about NATBIB - when you use the 'apalike' style file
> (.bst) for the bibliography, it for some reason doesn't input more
> than 2 authors per citation (ie. If you have three authors in a
> reference, and citet{key} - it includes the first two authors and not
> the third)...is there something I can do about that?
>
> similarly....I like the apalike style...but want to have quotations
> around the 'article' titles...is there a way to modifty the style?
> because otherwise, natbib doesn't have any other (known to me) styles
> that are similar...
>
> thanks in advance
>
> Polina
>
> Check out the all-new Yahoo! Mail beta
> <http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta>
> - Fire up a more powerful email and get things done faster.
Polina Minkovski
2006-11-22 22:31:56 UTC
Permalink
hi,

when using the NATBIB package - I want to cite a FULL AUTHOR NAME - first name and last name...how would I go about doing that? (i've tried \citealp, \citep, \citep*...)

Similarly - the apalike.sty - is odd in that it sets initials first and then the last names of the authors in the REFERENCES list...is there any way to change that?

thanks

Polina


---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
C.V.S.Kiran
2006-11-14 08:23:58 UTC
Permalink
Hello Group,
I have a problem to include Tiff images into my Thesis. When i try to do it
through the includegraphics command, i get an error. can one of you tell me
how to include then without changing the format of the image as the quality
of these tiff images are high quality and i donot want to change the format.

Thankl you in advance.
Best wishes,
Kiran


--
************************************************************************************************************
Venkata Sai Kiran
Chakravadhanula '''
tf
Kaiserstr.
2
Lehrstuhl
fuer Materialverbunde
24143 Kiel, Germany
Technische Fakultaet der CAU
Mob: 0049-17676797559
Res: 0049-4313392410
Web: www.tf.uni-kiel.de/~cv
e-mail : cvskiran-***@public.gmane.org, cv-KYH+***@public.gmane.org
************************************************************************************************************
§ Kiran wünsche alles gute in ihren
leben ! §
************************************************************************************************************
John Trapp
2006-11-14 08:54:24 UTC
Permalink
Depends on what route you are taking. If you are going with latex from dvi
via dvips to ps then you won't see tiff images.

However if you compile with pdflatex you should be able to include tiff
files.

John
Yannick
2006-11-14 10:02:08 UTC
Permalink
Hi
copied your code into a new file, and got the same error as I got with
mine :(
Any ideas?
Thanks for reply,

Yannick



Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/TeXnicCenter-Users/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/TeXnicCenter-Users/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:TeXnicCenter-Users-digest-***@public.gmane.org
mailto:TeXnicCenter-Users-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
TeXnicCenter-Users-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Kristof Möller
2006-11-14 11:58:50 UTC
Permalink
Hi again,

to help You one need more information...

What kind of Latex-Installation do You use?
(e.g. MikTeX updated to 28. Oct 2006)

When appears the error-message?
(e.g. compiling with latex or viewing the dvi-file with YAP)

What kind of error do You get?
(e.g. have a look on the < latex-doc>.log file...)

Probable errors can be: not installed packages, wrong Output-Profile, etc.
so I can only guess...

(Bye the way: PSTRICKS only work easy with "Latex => DVI" and
"Latex => PS => PDF" Output-Profile, a direct translation via
"Latex => PDF" is not natively supported!)

Best regards,

Kristof

Yannick schrieb:
> Hi
> copied your code into a new file, and got the same error as I got with
> mine :(
> Any ideas?
> Thanks for reply,
>
> Yannick
>
>
>
> Yahoo! Groups Links
>
>
>
>
>




Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/TeXnicCenter-Users/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/TeXnicCenter-Users/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:TeXnicCenter-Users-digest-***@public.gmane.org
mailto:TeXnicCenter-Users-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
TeXnicCenter-Users-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Yannick
2006-11-14 13:52:59 UTC
Permalink
Kristof Möller schrieb:
> Hi again,
>
> to help You one need more information...
>
> What kind of Latex-Installation do You use?
> (e.g. MikTeX updated to 28. Oct 2006)
>
> When appears the error-message?
> (e.g. compiling with latex or viewing the dvi-file with YAP)
>
> What kind of error do You get?
> (e.g. have a look on the < latex-doc>.log file...)
>
> Probable errors can be: not installed packages, wrong Output-Profile, etc.
> so I can only guess...
>
> (Bye the way: PSTRICKS only work easy with "Latex => DVI" and
> "Latex => PS => PDF" Output-Profile, a direct translation via
> "Latex => PDF" is not natively supported!)
>
> Best regards,
>
> Kristof
>

Hi Kristof,
so to answer your questions: I use the miktex.installation (on Windows
XP) version 2.4.2114
I don't get an error-massage while compiling (dvi and ps), but when I
try to open the dvi or the ps file.
I get the error-massage:
"Some PostScript specials could not be rendered. Do you want to see the
transcript of the PostScript interpreter?"
When I say yes the following massage is printed:

Error: /undefined in PI
Operand stack:
--nostringval-- PermitFileReading --nostringval--
PermitFileWriting --nostringval-- -14.2264 -0.5 0.1 0.1 0.1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1 3
%oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- --nostringval-- --nostringval--
%loop_continue --nostringval--
Dictionary stack:
--dict:1131/1686(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
--dict:95/300(L)-- --dict:37/200(L)-- --dict:95/200(L)--
--dict:81/410(L)--
Current allocation mode is local
MiKTeX GPL Ghostscript 8.50: Unrecoverable error, exit code 1

I only use the output profiles dvi and ps.
I've got the complet installation (with all packages)
I attached the *.log file.

Best regards,

Yannick
John Trapp
2006-11-14 08:57:07 UTC
Permalink
Does any one know where build profiles are stored?

I wanted to do a self-install that would not only install TXC, but also
put the build profiles into the correct location, to save the import of
them manually.

John
Stephan Klumpp
2006-11-14 14:00:12 UTC
Permalink
Dear Polina,

> and it always creates empty pages between chapters
in books chapters start at the right page in general. So the style
includes an empty page at the end of the chapter, so you don't have to
take during printing. Which means that the style presumes that you use
double page printing.
> and after endless searches online, I can't manage to make the table of
> contents include author names...it just includes the chapter title and
> that's it.
Did you try addtocentents ?

Greetings ...

Stephan
*__________________________________________________________________*
*Dipl.-Phys. Stephan Klumpp *
*Institut für Physik *
*Universität Kassel *
*Heinrich-Plett-Str. 40*
*D-34132 Kassel *

*Tel.: +49 (0561) 804 4198 *
*Fax: +49 (0561) 804 4150 *

*mailto: Stephan.Klumpp-***@public.gmane.org
<mailto:Stephan.Klumpp-***@public.gmane.org>*
* *
*Fachbereich 18, Experimentalphysik IV*
* *
*http://www.physik.uni-kassel.de/ehresmann/*
*
*__________________________________________________________________*
*
Benjamin Otto
2006-11-15 16:18:43 UTC
Permalink
Hi Yannik,

I tried the code and I get the same

"Some PostScript specials could not be rendered. Do you want to see the
transcript of the PostScript interpreter?"

warning message from YAP when I open the dvi file. However continuing with a
"Yes" displays the file without any problems. And it looks fine. I use YAP
2.5.2466 and your Miktex version seems a tiny bitsy older. Can this maybe be
a version compatibility issue so that not the dvi compilation but display of
the file causes the problem? What about a pdf file? Even if you are usually
only using the ps and dvi profile, maybe a pdf file in this case could at
least confirm wether this is a viewer or compiler problem... :)

An second idea on this part would be an exchange of compiled dvi files so
somebody can have a look on yours and see if it opens on an other machine.
And on the other hand you could have a look at some healthy dvi file and see
if you can open it. What do you think?

Regards,

Benjamin




--
Benjamin Otto
Universitaetsklinikum Eppendorf Hamburg
Institut fuer Klinische Chemie
Martinistrasse 52
20246 Hamburg
Kristof Möller
2006-11-16 09:01:06 UTC
Permalink
Hi Benjamin,

we have already solved the problem, but You are exactly right,
it was the old Miktex 2.4 installation that causes the error...
(The complied DVI file was healthy, but the DVIPS-interpreter was
not working...)

Thanks for Your help!

Regards,

Kristof


Benjamin Otto schrieb:
>
> Hi Yannik,
>
> I tried the code and I get the same
>
> "Some PostScript specials could not be rendered. Do you want to see the
> transcript of the PostScript interpreter?"
>
> warning message from YAP when I open the dvi file. However continuing
> with a
> "Yes" displays the file without any problems. And it looks fine. I use YAP
> 2.5.2466 and your Miktex version seems a tiny bitsy older. Can this
> maybe be
> a version compatibility issue so that not the dvi compilation but
> display of
> the file causes the problem? What about a pdf file? Even if you are
> usually
> only using the ps and dvi profile, maybe a pdf file in this case could at
> least confirm wether this is a viewer or compiler problem... :)
>
> An second idea on this part would be an exchange of compiled dvi files so
> somebody can have a look on yours and see if it opens on an other machine.
> And on the other hand you could have a look at some healthy dvi file
> and see
> if you can open it. What do you think?
>
> Regards,
>
> Benjamin
>
> --
> Benjamin Otto
> Universitaetsklinikum Eppendorf Hamburg
> Institut fuer Klinische Chemie
> Martinistrasse 52
> 20246 Hamburg
>
>
Loading...