Re: where is the error?

2012-09-22 Thread mario chiari
Hello
have you looked at the .log file?
Did you try to run the .tex file by simple latex? 

my 2 cents

mario







On Sat, 2012-09-22 at 09:35 +0200, Julia Schäfer wrote:
 Hello!
 
 I have been using Lyx 2.0.3 (on Mac OSX) on my current project for
 several months now and learned to deal with most errors occurring.
 However, now Lyx doesn't any longer guide me directly to the point in
 my document that caused the problem but only tells me that there is a
 problem as soon as I try to generate the PDF-preview. I think it
 stopped doing so a couple of days ago but I can't remember why and if
 I involuntarily changed any settings. Now recently I have reworked my
 document and made changes all over the place (and forgot to generate
 the preview every couple of minutes). So it is impossible for me
 simply to 'guess' which recent change may have caused the errors Lyx
 is talking about. Especially as it's so general problems like LaTeX
 Error: Something's wrong--perhaps a missing \item. or Missing }
 inserted. which seems to be cover terms for all kinds errors. Usually
 I can figure out what the problem is if I just know where to look for
 it.
 
 I have also tried to solve the problems by looking at the source code
 but I couldn't figure out anything. As long as I can't solve the
 existing problems I won't be able to generate the preview in order to
 check if I don't produce any new errors as I proceed writing and the
 list of 'mysterious errors' is getting longer and longer.
 
 So please help me!!! How can I make Lyx guide me to the problem in the
 document and show me at least the paragraph containing the errors
 again? 
 
 Thank you very much!
 Julia Schäfer




Re: where is the error?

2012-09-22 Thread mario chiari
Hello
have you looked at the .log file?
Did you try to run the .tex file by simple latex? 

my 2 cents

mario







On Sat, 2012-09-22 at 09:35 +0200, Julia Schäfer wrote:
 Hello!
 
 I have been using Lyx 2.0.3 (on Mac OSX) on my current project for
 several months now and learned to deal with most errors occurring.
 However, now Lyx doesn't any longer guide me directly to the point in
 my document that caused the problem but only tells me that there is a
 problem as soon as I try to generate the PDF-preview. I think it
 stopped doing so a couple of days ago but I can't remember why and if
 I involuntarily changed any settings. Now recently I have reworked my
 document and made changes all over the place (and forgot to generate
 the preview every couple of minutes). So it is impossible for me
 simply to 'guess' which recent change may have caused the errors Lyx
 is talking about. Especially as it's so general problems like LaTeX
 Error: Something's wrong--perhaps a missing \item. or Missing }
 inserted. which seems to be cover terms for all kinds errors. Usually
 I can figure out what the problem is if I just know where to look for
 it.
 
 I have also tried to solve the problems by looking at the source code
 but I couldn't figure out anything. As long as I can't solve the
 existing problems I won't be able to generate the preview in order to
 check if I don't produce any new errors as I proceed writing and the
 list of 'mysterious errors' is getting longer and longer.
 
 So please help me!!! How can I make Lyx guide me to the problem in the
 document and show me at least the paragraph containing the errors
 again? 
 
 Thank you very much!
 Julia Schäfer




Re: where is the error?

2012-09-22 Thread mario chiari
Hello
have you looked at the .log file?
Did you try to run the .tex file by simple latex? 

my 2 cents

mario







On Sat, 2012-09-22 at 09:35 +0200, Julia Schäfer wrote:
> Hello!
> 
> I have been using Lyx 2.0.3 (on Mac OSX) on my current project for
> several months now and learned to deal with most errors occurring.
> However, now Lyx doesn't any longer guide me directly to the point in
> my document that caused the problem but only tells me that there is a
> problem as soon as I try to generate the PDF-preview. I think it
> stopped doing so a couple of days ago but I can't remember why and if
> I involuntarily changed any settings. Now recently I have reworked my
> document and made changes all over the place (and forgot to generate
> the preview every couple of minutes). So it is impossible for me
> simply to 'guess' which recent change may have caused the errors Lyx
> is "talking" about. Especially as it's so general problems like "LaTeX
> Error: Something's wrong--perhaps a missing \item." or "Missing }
> inserted." which seems to be cover terms for all kinds errors. Usually
> I can figure out what the problem is if I just know where to look for
> it.
> 
> I have also tried to solve the problems by looking at the source code
> but I couldn't figure out anything. As long as I can't solve the
> existing problems I won't be able to generate the preview in order to
> check if I don't produce any new errors as I proceed writing and the
> list of 'mysterious errors' is getting longer and longer.
> 
> So please help me!!! How can I make Lyx guide me to the problem in the
> document and show me at least the paragraph containing the errors
> again? 
> 
> Thank you very much!
> Julia Schäfer




underscore issue

2012-09-21 Thread mario chiari
Hi

I have the following issue 
(my guess is that it is a LaTeX issue, still help is welcome)

I have defined a command \qu :
\global\long\def\qu#1#2#3{\begin{quote} ``{#1}'' (\cite[pg.#2]{#3})
\end{quote}}.

For something like \qu{text}{12}{Writer_A}, when I try to pdflatex I get
the error msg:
---
{text}{12}{Writer\_A}
The control sequence marked to be read again should
not appear between \csname and \endcsname.
---

However I may insert  \cite[12]{Writer_A} and compile without any
trouble.

Is there a way out, if I try to keep my citations with '_'?

Thankd
cheers
mario





underscore issue

2012-09-21 Thread mario chiari
Hi

I have the following issue 
(my guess is that it is a LaTeX issue, still help is welcome)

I have defined a command \qu :
\global\long\def\qu#1#2#3{\begin{quote} ``{#1}'' (\cite[pg.#2]{#3})
\end{quote}}.

For something like \qu{text}{12}{Writer_A}, when I try to pdflatex I get
the error msg:
---
{text}{12}{Writer\_A}
The control sequence marked to be read again should
not appear between \csname and \endcsname.
---

However I may insert  \cite[12]{Writer_A} and compile without any
trouble.

Is there a way out, if I try to keep my citations with '_'?

Thankd
cheers
mario





underscore issue

2012-09-21 Thread mario chiari
Hi

I have the following issue 
(my guess is that it is a LaTeX issue, still help is welcome)

I have defined a command \qu :
\global\long\def\qu#1#2#3{\begin{quote} ``{#1}'' (\cite[pg.#2]{#3})
\end{quote}}.

For something like \qu{text}{12}{Writer_A}, when I try to pdflatex I get
the error msg:
---
{text}{12}{Writer\_A}
The control sequence marked  should
not appear between \csname and \endcsname.
---

However I may insert  \cite[12]{Writer_A} and compile without any
trouble.

Is there a way out, if I try to keep my citations with '_'?

Thankd
cheers
mario





Re: Biblatex

2012-07-12 Thread mario chiari
Good!
Happy lyx+biblatex.

btw., have you tried  \bibliography{C:/Users/Bernd/test4.bib} too?

best wishes
mario

On Thu, 2012-07-12 at 21:22 +0200, Bernd Kappenberg wrote:
 Hi,
 
 Finally it did work!
 
 I had to replace
 \bibliography{test4.bib}
 by
 \addbibresource{C:/Users/Bernd/test4.bib}
 
 Bernd :)




Re: Biblatex

2012-07-12 Thread mario chiari
Good!
Happy lyx+biblatex.

btw., have you tried  \bibliography{C:/Users/Bernd/test4.bib} too?

best wishes
mario

On Thu, 2012-07-12 at 21:22 +0200, Bernd Kappenberg wrote:
 Hi,
 
 Finally it did work!
 
 I had to replace
 \bibliography{test4.bib}
 by
 \addbibresource{C:/Users/Bernd/test4.bib}
 
 Bernd :)




Re: Biblatex

2012-07-12 Thread mario chiari
Good!
Happy lyx+biblatex.

btw., have you tried  \bibliography{C:/Users/Bernd/test4.bib} too?

best wishes
mario

On Thu, 2012-07-12 at 21:22 +0200, Bernd Kappenberg wrote:
> Hi,
> 
> Finally it did work!
> 
> I had to replace
> \bibliography{test4.bib}
> by
> \addbibresource{C:/Users/Bernd/test4.bib}
> 
> Bernd :)




Re: Biblatex

2012-07-07 Thread mario chiari
Hi


i was not using biber, still it works fine with
\usepackage[backref,backend=biber]{biblatex} too, and I see a .bcf file
now.

I am not sure how to help you. (Did you check biblatex version and
writing permissions?)

Try to ask at http://sourceforge.net/projects/biblatex-biber/forums/


good luck
mario


On Fri, 2012-07-06 at 22:21 +0200, Bernd Kappenberg wrote:
 Hi,
 
 My \bibliography is fine with {myfile}, but what is this:
 
 ERROR - No data files on command line or provided in the file 
 'Neu204.bcf'! Exiting
 
 ?
 
 
 Bernd
 
 
 
 Am 06.07.2012 20:42, schrieb mario chiari:
  Hi
 
  here it works very well.
 
  I need to write the complete path to the .bib file within the preamble:
 
  \bibliography{/root/ my path to /myfile.bib} (my OS is linux)
 
  In your .lyx document you need something like
 
  \cite{AAA}
  \nocite{*}
  \printbibliography.
 
  What does your log say?

  mario
 
 
 
 
 
  On Fri, 2012-07-06 at 00:22 +0200, Bernd Kappenberg wrote:
  Hi,
 
  I downloaded LyX 2.0.4.
  Then I followed the instructions on http://wiki.lyx.org/BibTeX/Biblatex.
  However, the pdf generated does not have a bibliography.
  I tried an own file as well as one of the examples on that site.
 
  Please help...
 
  Bernd Kappenberg
 
 
 
 




Re: Biblatex

2012-07-07 Thread mario chiari
Hi


i was not using biber, still it works fine with
\usepackage[backref,backend=biber]{biblatex} too, and I see a .bcf file
now.

I am not sure how to help you. (Did you check biblatex version and
writing permissions?)

Try to ask at http://sourceforge.net/projects/biblatex-biber/forums/


good luck
mario


On Fri, 2012-07-06 at 22:21 +0200, Bernd Kappenberg wrote:
 Hi,
 
 My \bibliography is fine with {myfile}, but what is this:
 
 ERROR - No data files on command line or provided in the file 
 'Neu204.bcf'! Exiting
 
 ?
 
 
 Bernd
 
 
 
 Am 06.07.2012 20:42, schrieb mario chiari:
  Hi
 
  here it works very well.
 
  I need to write the complete path to the .bib file within the preamble:
 
  \bibliography{/root/ my path to /myfile.bib} (my OS is linux)
 
  In your .lyx document you need something like
 
  \cite{AAA}
  \nocite{*}
  \printbibliography.
 
  What does your log say?

  mario
 
 
 
 
 
  On Fri, 2012-07-06 at 00:22 +0200, Bernd Kappenberg wrote:
  Hi,
 
  I downloaded LyX 2.0.4.
  Then I followed the instructions on http://wiki.lyx.org/BibTeX/Biblatex.
  However, the pdf generated does not have a bibliography.
  I tried an own file as well as one of the examples on that site.
 
  Please help...
 
  Bernd Kappenberg
 
 
 
 




Re: Biblatex

2012-07-07 Thread mario chiari
Hi


i was not using biber, still it works fine with
\usepackage[backref,backend=biber]{biblatex} too, and I see a .bcf file
now.

I am not sure how to help you. (Did you check biblatex version and
writing permissions?)

Try to ask at http://sourceforge.net/projects/biblatex-biber/forums/


good luck
mario


On Fri, 2012-07-06 at 22:21 +0200, Bernd Kappenberg wrote:
> Hi,
> 
> My \bibliography is fine with {myfile}, but what is this:
> 
> ERROR - No data files on command line or provided in the file 
> 'Neu204.bcf'! Exiting
> 
> ?
> 
> 
> Bernd
> 
> 
> 
> Am 06.07.2012 20:42, schrieb mario chiari:
> > Hi
> >
> > here it works very well.
> >
> > I need to write the complete path to the .bib file within the preamble:
> >
> > \bibliography{/root/ my path to /myfile.bib} (my OS is linux)
> >
> > In your .lyx document you need something like
> >
> > \cite{AAA}
> > \nocite{*}
> > \printbibliography.
> >
> > What does your log say?
> >   
> > mario
> >
> >
> >
> >
> >
> > On Fri, 2012-07-06 at 00:22 +0200, Bernd Kappenberg wrote:
> >> Hi,
> >>
> >> I downloaded LyX 2.0.4.
> >> Then I followed the instructions on http://wiki.lyx.org/BibTeX/Biblatex.
> >> However, the pdf generated does not have a bibliography.
> >> I tried an own file as well as one of the examples on that site.
> >>
> >> Please help...
> >>
> >> Bernd Kappenberg
> >
> >
> 
> 




Re: Biblatex

2012-07-06 Thread mario chiari
Hi

here it works very well.

I need to write the complete path to the .bib file within the preamble:

\bibliography{/root/ my path to /myfile.bib} (my OS is linux)

In your .lyx document you need something like

\cite{AAA}
\nocite{*} 
\printbibliography.

What does your log say?
 
mario





On Fri, 2012-07-06 at 00:22 +0200, Bernd Kappenberg wrote:
 Hi,
 
 I downloaded LyX 2.0.4.
 Then I followed the instructions on http://wiki.lyx.org/BibTeX/Biblatex.
 However, the pdf generated does not have a bibliography.
 I tried an own file as well as one of the examples on that site.
 
 Please help...
 
 Bernd Kappenberg




Re: Biblatex

2012-07-06 Thread mario chiari
Hi

here it works very well.

I need to write the complete path to the .bib file within the preamble:

\bibliography{/root/ my path to /myfile.bib} (my OS is linux)

In your .lyx document you need something like

\cite{AAA}
\nocite{*} 
\printbibliography.

What does your log say?
 
mario





On Fri, 2012-07-06 at 00:22 +0200, Bernd Kappenberg wrote:
 Hi,
 
 I downloaded LyX 2.0.4.
 Then I followed the instructions on http://wiki.lyx.org/BibTeX/Biblatex.
 However, the pdf generated does not have a bibliography.
 I tried an own file as well as one of the examples on that site.
 
 Please help...
 
 Bernd Kappenberg




Re: Biblatex

2012-07-06 Thread mario chiari
Hi

here it works very well.

I need to write the complete path to the .bib file within the preamble:

\bibliography{/root/ my path to /myfile.bib} (my OS is linux)

In your .lyx document you need something like

\cite{AAA}
\nocite{*} 
\printbibliography.

What does your log say?
 
mario





On Fri, 2012-07-06 at 00:22 +0200, Bernd Kappenberg wrote:
> Hi,
> 
> I downloaded LyX 2.0.4.
> Then I followed the instructions on http://wiki.lyx.org/BibTeX/Biblatex.
> However, the pdf generated does not have a bibliography.
> I tried an own file as well as one of the examples on that site.
> 
> Please help...
> 
> Bernd Kappenberg




Re: lyx and hypcap

2012-03-14 Thread mario chiari
Dear Julien, All,

thanks for the reply.
Nope, it does not work even  with the \label within the \caption.

I copyaste my entire file below.
I tried to export and latex the .tex file. I get the same error, but the
final .dvi file is fine.
With pdflatex, the final .pdf file is fine too, but I get more errors.
Lyx does not let me to compile, it just dies. 

I appreciate any further hint
thanks, regards
mario

ps 
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hypcap.sty
Package: hypcap 2008/09/08 v1.10 Adjusting anchors of captions (HO)

%%% my  .tex, exported (and simplified)
%% LyX 2.0.0beta3 created this file.  For more info, see
http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,a4paper,italian]{letter}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{color}
\usepackage{babel}
\usepackage{url}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0
1},backref=page,colorlinks=true]{hyperref}
\hypersetup{pdftitle={mario letter},
 pdfauthor={mario},
 pdfsubject={topic},
 pdfkeywords={key}}
\usepackage{breakurl}

\makeatletter

%% LyX specific LaTeX commands.
\special{papersize=\the\paperwidth,\the\paperheight}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
%% User specified LaTeX commands.
\usepackage[top=2cm, bottom=3cm, left=1cm, right=2cm]{geometry}
%\usepackage{biblatex}%\bibliographystyle{plain}
\usepackage{lmodern}% Enable Latin Modern fonts
\usepackage{graphicx}
\usepackage{fancyhdr}

\usepackage[babel,italian=guillemets]{csquotes}
\usepackage{ifthen}
\usepackage{float}

\usepackage{hypcap}% see 

%\usepackage[bf]{caption}
%\usepackage[hypcap=true]{subcaption}  %similar issues

\AtBeginDocument{
  \def\labelitemii{\(\circ\)}
  \def\labelitemiv{\(\checkmark\)}
}

\makeatother

\begin{document}
\letter{my friend \linebreak{}
home \linebreak{}
town}
\address{myself\\
my place\\
home town\\
123123123 }
\opening{Dear}
\signature{mario}
bla bla   \ref{pict}  \ref{pict2}
\closing{ciao}

\floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
\hypcapredef{myfig}


\begin{myfig} 
\capstart 
\begin{center}
 \includegraphics[bb=0 0 173 468,scale=1.2]{./myfile.jpg}
 % myfile.jpg: 480x1300 pixel, 200dpi, 6.10x16.51 cm, bb=0 0 173 468
\end{center}
\caption{my picture here \label{pict} }
\end{myfig}


\begin{myfig} 
\capstart 
\begin{center}
 \includegraphics[bb=0 0 173 468,scale=1.1]{./myfile.jpg}
 % myfile.jpg: 480x1300 pixel, 200dpi, 6.10x16.51 cm, bb=0 0 173 468
\end{center}
\caption{my picture two here \label{pict2} }
\end{myfig}
\end{document}

 error (from .log file), when I latex .tex file
..
\@float@every@myfig=\toks28
\c@myfig=\count105
File: ./myfile.jpg Graphic file (type eps)
 ./myfile.jpg
Package hyperref Info: bookmark level for unknown myfig defaults to 0 on
input 
line 79.
! Package hypcap Error: You have forgotten to use \caption.
See the hypcap package documentation for explanation.
Type  H return  for immediate help.
 ...
   
l.80 \end{myfig}   
\global 
File: ./myfile.jpg Graphic file (type eps)
./myfile.jpg
! Package hypcap Error: You have forgotten to use \caption.
See the hypcap package documentation for explanation.
Type  H return  for immediate help.
 ...
  
l.90 \end{myfig}  
\global 
.

% further error (from .log file), when I pdflatex .tex file

l.91 \end{document}
   pdfTeX warning (ext4): destination with the same
identifier 
(name{myfig.1}) has been already used, duplicate ignored
. 


:-(




On Tue, 2012-03-13 at 19:33 -0400, Julien Rioux wrote:
 On 13/03/2012 7:06 PM, mario chiari wrote:
  Hi
 
 
  I am trying to use captions defined thanks to \usepackage{hypcap}, as
  you may see below.
  I get the error
  ! Package hypcap Error: You have forgotten to use \caption.
 
  Indeed I have not forgot it, and I am not sure what to try.
  Note, lyx displays myfile.jpeg.
 
  Any hint is welcome.
  Thanks, Regards
  mario
 
 
 
  ---
  \floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
  \hypcapredef{myfig}
 
  \begin{myfig} \capstart
 
  \begin{center}
  \includegraphics[bb=0 0 593 608,scale=1.05]{\lyxdot \lyxdot /\lyxdot
  \lyxdot /myfile.jpeg}
  \par\end{center}
 
  \caption{bla bla \cite{aaa}}
 
 
  \label{bbb}\end{myfig}
 
 
 
 Do you get a better result with the \label within the \caption?
 




Re: lyx and hypcap

2012-03-14 Thread mario chiari
Dear Julien, All,

thanks for the reply.
Nope, it does not work even  with the \label within the \caption.

I copyaste my entire file below.
I tried to export and latex the .tex file. I get the same error, but the
final .dvi file is fine.
With pdflatex, the final .pdf file is fine too, but I get more errors.
Lyx does not let me to compile, it just dies. 

I appreciate any further hint
thanks, regards
mario

ps 
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hypcap.sty
Package: hypcap 2008/09/08 v1.10 Adjusting anchors of captions (HO)

%%% my  .tex, exported (and simplified)
%% LyX 2.0.0beta3 created this file.  For more info, see
http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,a4paper,italian]{letter}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{color}
\usepackage{babel}
\usepackage{url}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0
1},backref=page,colorlinks=true]{hyperref}
\hypersetup{pdftitle={mario letter},
 pdfauthor={mario},
 pdfsubject={topic},
 pdfkeywords={key}}
\usepackage{breakurl}

\makeatletter

%% LyX specific LaTeX commands.
\special{papersize=\the\paperwidth,\the\paperheight}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
%% User specified LaTeX commands.
\usepackage[top=2cm, bottom=3cm, left=1cm, right=2cm]{geometry}
%\usepackage{biblatex}%\bibliographystyle{plain}
\usepackage{lmodern}% Enable Latin Modern fonts
\usepackage{graphicx}
\usepackage{fancyhdr}

\usepackage[babel,italian=guillemets]{csquotes}
\usepackage{ifthen}
\usepackage{float}

\usepackage{hypcap}% see 

%\usepackage[bf]{caption}
%\usepackage[hypcap=true]{subcaption}  %similar issues

\AtBeginDocument{
  \def\labelitemii{\(\circ\)}
  \def\labelitemiv{\(\checkmark\)}
}

\makeatother

\begin{document}
\letter{my friend \linebreak{}
home \linebreak{}
town}
\address{myself\\
my place\\
home town\\
123123123 }
\opening{Dear}
\signature{mario}
bla bla   \ref{pict}  \ref{pict2}
\closing{ciao}

\floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
\hypcapredef{myfig}


\begin{myfig} 
\capstart 
\begin{center}
 \includegraphics[bb=0 0 173 468,scale=1.2]{./myfile.jpg}
 % myfile.jpg: 480x1300 pixel, 200dpi, 6.10x16.51 cm, bb=0 0 173 468
\end{center}
\caption{my picture here \label{pict} }
\end{myfig}


\begin{myfig} 
\capstart 
\begin{center}
 \includegraphics[bb=0 0 173 468,scale=1.1]{./myfile.jpg}
 % myfile.jpg: 480x1300 pixel, 200dpi, 6.10x16.51 cm, bb=0 0 173 468
\end{center}
\caption{my picture two here \label{pict2} }
\end{myfig}
\end{document}

 error (from .log file), when I latex .tex file
..
\@float@every@myfig=\toks28
\c@myfig=\count105
File: ./myfile.jpg Graphic file (type eps)
 ./myfile.jpg
Package hyperref Info: bookmark level for unknown myfig defaults to 0 on
input 
line 79.
! Package hypcap Error: You have forgotten to use \caption.
See the hypcap package documentation for explanation.
Type  H return  for immediate help.
 ...
   
l.80 \end{myfig}   
\global 
File: ./myfile.jpg Graphic file (type eps)
./myfile.jpg
! Package hypcap Error: You have forgotten to use \caption.
See the hypcap package documentation for explanation.
Type  H return  for immediate help.
 ...
  
l.90 \end{myfig}  
\global 
.

% further error (from .log file), when I pdflatex .tex file

l.91 \end{document}
   pdfTeX warning (ext4): destination with the same
identifier 
(name{myfig.1}) has been already used, duplicate ignored
. 


:-(




On Tue, 2012-03-13 at 19:33 -0400, Julien Rioux wrote:
 On 13/03/2012 7:06 PM, mario chiari wrote:
  Hi
 
 
  I am trying to use captions defined thanks to \usepackage{hypcap}, as
  you may see below.
  I get the error
  ! Package hypcap Error: You have forgotten to use \caption.
 
  Indeed I have not forgot it, and I am not sure what to try.
  Note, lyx displays myfile.jpeg.
 
  Any hint is welcome.
  Thanks, Regards
  mario
 
 
 
  ---
  \floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
  \hypcapredef{myfig}
 
  \begin{myfig} \capstart
 
  \begin{center}
  \includegraphics[bb=0 0 593 608,scale=1.05]{\lyxdot \lyxdot /\lyxdot
  \lyxdot /myfile.jpeg}
  \par\end{center}
 
  \caption{bla bla \cite{aaa}}
 
 
  \label{bbb}\end{myfig}
 
 
 
 Do you get a better result with the \label within the \caption?
 




Re: lyx and hypcap

2012-03-14 Thread mario chiari
Dear Julien, All,

thanks for the reply.
Nope, it does not work even  with the \label within the \caption.

I copy my entire file below.
I tried to export and latex the .tex file. I get the same error, but the
final .dvi file is fine.
With pdflatex, the final .pdf file is fine too, but I get more errors.
Lyx does not let me to compile, it just dies. 

I appreciate any further hint
thanks, regards
mario

ps 
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hypcap.sty
Package: hypcap 2008/09/08 v1.10 Adjusting anchors of captions (HO)

%%% my  .tex, exported (and simplified)
%% LyX 2.0.0beta3 created this file.  For more info, see
http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,a4paper,italian]{letter}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{color}
\usepackage{babel}
\usepackage{url}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0
1},backref=page,colorlinks=true]{hyperref}
\hypersetup{pdftitle={mario letter},
 pdfauthor={mario},
 pdfsubject={topic},
 pdfkeywords={key}}
\usepackage{breakurl}

\makeatletter

%% LyX specific LaTeX commands.
\special{papersize=\the\paperwidth,\the\paperheight}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
%% User specified LaTeX commands.
\usepackage[top=2cm, bottom=3cm, left=1cm, right=2cm]{geometry}
%\usepackage{biblatex}%\bibliographystyle{plain}
\usepackage{lmodern}% Enable Latin Modern fonts
\usepackage{graphicx}
\usepackage{fancyhdr}

\usepackage[babel,italian=guillemets]{csquotes}
\usepackage{ifthen}
\usepackage{float}

\usepackage{hypcap}% see 

%\usepackage[bf]{caption}
%\usepackage[hypcap=true]{subcaption}  %similar issues

\AtBeginDocument{
  \def\labelitemii{\(\circ\)}
  \def\labelitemiv{\(\checkmark\)}
}

\makeatother

\begin{document}
\letter{my friend \linebreak{}
home \linebreak{}
town}
\address{myself\\
my place\\
home town\\
123123123 }
\opening{Dear}
\signature{mario}
bla bla   \ref{pict}  \ref{pict2}
\closing{ciao}

\floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
\hypcapredef{myfig}


\begin{myfig} 
\capstart 
\begin{center}
 \includegraphics[bb=0 0 173 468,scale=1.2]{./myfile.jpg}
 % myfile.jpg: 480x1300 pixel, 200dpi, 6.10x16.51 cm, bb=0 0 173 468
\end{center}
\caption{my picture here \label{pict} }
\end{myfig}


\begin{myfig} 
\capstart 
\begin{center}
 \includegraphics[bb=0 0 173 468,scale=1.1]{./myfile.jpg}
 % myfile.jpg: 480x1300 pixel, 200dpi, 6.10x16.51 cm, bb=0 0 173 468
\end{center}
\caption{my picture two here \label{pict2} }
\end{myfig}
\end{document}

 error (from .log file), when I latex .tex file
..
\@float@every@myfig=\toks28
\c@myfig=\count105
File: ./myfile.jpg Graphic file (type eps)
 <./myfile.jpg>
Package hyperref Info: bookmark level for unknown myfig defaults to 0 on
input 
line 79.
! Package hypcap Error: You have forgotten to use \caption.
See the hypcap package documentation for explanation.
Type  H   for immediate help.
 ...
   
l.80 \end{myfig}   
\global 
File: ./myfile.jpg Graphic file (type eps)
<./myfile.jpg>
! Package hypcap Error: You have forgotten to use \caption.
See the hypcap package documentation for explanation.
Type  H   for immediate help.
 ...
  
l.90 \end{myfig}  
\global 
.

% further error (from .log file), when I pdflatex .tex file

l.91 \end{document}
   pdfTeX warning (ext4): destination with the same
identifier 
(name{myfig.1}) has been already used, duplicate ignored
. 


:-(




On Tue, 2012-03-13 at 19:33 -0400, Julien Rioux wrote:
> On 13/03/2012 7:06 PM, mario chiari wrote:
> > Hi
> >
> >
> > I am trying to use captions defined thanks to \usepackage{hypcap}, as
> > you may see below.
> > I get the error
> > ! Package hypcap Error: You have forgotten to use \caption.
> >
> > Indeed I have not forgot it, and I am not sure what to try.
> > Note, lyx displays myfile.jpeg.
> >
> > Any hint is welcome.
> > Thanks, Regards
> > mario
> >
> >
> >
> > ---
> > \floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
> > \hypcapredef{myfig}
> >
> > \begin{myfig} \capstart
> >
> > \begin{center}
> > \includegraphics[bb=0 0 593 608,scale=1.05]{\lyxdot \lyxdot /\lyxdot
> > \lyxdot /myfile.jpeg}
> > \par\end{center}
> >
> > \caption{bla bla \cite{aaa}}
> >
> >
> > \label{bbb}\end{myfig}
> >
> >
> 
> Do you get a better result with the \label within the \caption?
> 




lyx and hypcap

2012-03-13 Thread mario chiari
Hi


I am trying to use captions defined thanks to \usepackage{hypcap}, as
you may see below.
I get the error
! Package hypcap Error: You have forgotten to use \caption.

Indeed I have not forgot it, and I am not sure what to try.
Note, lyx displays myfile.jpeg. 

Any hint is welcome.
Thanks, Regards
mario



---
\floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
\hypcapredef{myfig}

\begin{myfig} \capstart 

\begin{center}
\includegraphics[bb=0 0 593 608,scale=1.05]{\lyxdot \lyxdot /\lyxdot
\lyxdot /myfile.jpeg} 
\par\end{center}

\caption{bla bla \cite{aaa}}


\label{bbb}\end{myfig} 



lyx and hypcap

2012-03-13 Thread mario chiari
Hi


I am trying to use captions defined thanks to \usepackage{hypcap}, as
you may see below.
I get the error
! Package hypcap Error: You have forgotten to use \caption.

Indeed I have not forgot it, and I am not sure what to try.
Note, lyx displays myfile.jpeg. 

Any hint is welcome.
Thanks, Regards
mario



---
\floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
\hypcapredef{myfig}

\begin{myfig} \capstart 

\begin{center}
\includegraphics[bb=0 0 593 608,scale=1.05]{\lyxdot \lyxdot /\lyxdot
\lyxdot /myfile.jpeg} 
\par\end{center}

\caption{bla bla \cite{aaa}}


\label{bbb}\end{myfig} 



lyx and hypcap

2012-03-13 Thread mario chiari
Hi


I am trying to use captions defined thanks to \usepackage{hypcap}, as
you may see below.
I get the error
! Package hypcap Error: You have forgotten to use \caption.

Indeed I have not forgot it, and I am not sure what to try.
Note, lyx displays myfile.jpeg. 

Any hint is welcome.
Thanks, Regards
mario



---
\floatstyle{ruled} \newfloat{myfig}{thp}{lop} \floatname{myfig}{Testo}
\hypcapredef{myfig}

\begin{myfig} \capstart 

\begin{center}
\includegraphics[bb=0 0 593 608,scale=1.05]{\lyxdot \lyxdot /\lyxdot
\lyxdot /myfile.jpeg} 
\par\end{center}

\caption{bla bla \cite{aaa}}


\label{bbb}\end{myfig}