Julien Rioux <[email protected]> írta: >On 06/09/2011 8:50 PM, Csikos Bela wrote:> > As I see the varioref package is used for this purpose.> > I looked at its documentation and found that the package has starred> > versions of vref and vpageref commands (vref*, vpageref*) which prevent> > insertion of a space before the reference. It seems that currently the > starred> > commands can not be inserted through lyx, TeX code has to be used> > (which is not a problem). But it could be a feature improvement if they> > could be inserted through lyx as well in a future release.> >> > >So you get extra spaces? Do you have a minimal example file which shows > >your problem?> >
Thank Julien. Here is an example. See the page reference in the parenthesis. #LyX 2.0 created this file. For more info see http://www.lyx.org/ \lyxformat 413 \begin_document \begin_header \textclass article \use_default_options true \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman default \font_sans default \font_typewriter default \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \use_hyperref false \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \use_mhchem 1 \use_mathdots 1 \cite_engine basic \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \use_refstyle 1 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Standard Figure \begin_inset CommandInset ref LatexCommand ref reference "fig1" \end_inset ( \begin_inset CommandInset ref LatexCommand vpageref reference "fig1" \end_inset ) shows ... \end_layout \begin_layout Standard \begin_inset Float figure wide false sideways false status open \begin_layout Plain Layout \begin_inset Caption \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label name "fig1" \end_inset This is a figure caption \end_layout \end_inset \end_layout \end_inset \end_layout \end_body \end_document >You can always put the reference right next to the preceding word: >"as seen[pageref]" >will produce >"as seen on this page" >in output. > >I don't remember if I ever needed to do that and why. > > Another issue is that one of my references says 'on this page' (in the last > line> > of the page) but the table float is placed on the next page.> > How can I correct this one?> >> > I never had this. Is your label within the float?> > Yes, it is. I will try to make an example for this too, but it takes time. > One more question:> > The varioref document says that the \reftextbefore etc. commands can be> > redefined, but if babel is used it has to be done using babel mechanism.> > It gives an example:> >> > \addto\extrasngerman{%> > \renewcommand\reftextfaceafter {auf der n\"achsten Seite}%> > ...> > }> >> > What would be the command for magyar (Hungarian) language?> > How can I find it out?> > I would try replacing ngerman with magyar.> > Unfortunately this does not work. Try to figure it out myself. Thanks again, bcsikos
