Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][LYX] Wstawka algorytm i niespolszczone 'algorithm'
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
szolek
Guru
Guru


Joined: 30 Mar 2005
Posts: 570
Location: Brzóza Królewska

PostPosted: Wed Oct 11, 2006 11:01 am    Post subject: [SOLVED][LYX] Wstawka algorytm i niespolszczone 'algorithm' Reply with quote

Bardzo ładne wstawki algorytmów na wydruku dają mi niespolszczone słowo Algorithm. Za raz po nim numerek i tytuł. Chciałbym to jakoś zmienić jednak pomimo wszelkich prób nie mogę znaleźć pliku, który by za to odpowiadał. Co dziwne spis algorytmów na wydruku jest poprawnie spolszczony.

Rozwiązanie:
Doszukałem sie w źródełkach pliku pl.po, który jest polskim tłumaczeniem programu. A w nim:
Code:
#: lib/layouts/amsart-plain.layout:61 lib/layouts/amsart-seq.layout:173
#: lib/layouts/elsart.layout:347 lib/layouts/amsmaths-plain.inc:93
#: lib/layouts/amsmaths-seq.inc:80 lib/layouts/amsmaths.inc:202
#: lib/layouts/stdfloats.inc:34
msgid "Algorithm"
msgstr "Algorytm"

Rozpaczliwie edytowałem wszystkie wypisane tu pliki zamieniając słowo Algorithm na Algorytm. Z tymi zmianami zadziałało dopiero po ponownym uruchomieniu programu.


Last edited by szolek on Wed Oct 11, 2006 2:33 pm; edited 2 times in total
Back to top
View user's profile Send private message
argasek
Bodhisattva
Bodhisattva


Joined: 06 May 2004
Posts: 1121
Location: Sol [0,0], Poland, Kraków

PostPosted: Wed Oct 11, 2006 11:30 am    Post subject: Reply with quote

Ymm... Mógłbyś wrzucić fragment kodu TeX, żeby móc to odtworzyć?
_________________
RLU #137109 | http://soundcloud.com/argasek
Back to top
View user's profile Send private message
szolek
Guru
Guru


Joined: 30 Mar 2005
Posts: 570
Location: Brzóza Królewska

PostPosted: Wed Oct 11, 2006 11:42 am    Post subject: Reply with quote

Expotr do latex'a szybkiego przykładu:
Code:
%% LyX 1.4.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[polish]{article}
\usepackage[T1]{fontenc}
\usepackage[latin2]{inputenc}
\usepackage{float}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\floatname{algorithm}{Algorithm}

\usepackage{babel}
\makeatother
\begin{document}
jakiś tekst%
\begin{algorithm}
main (void) \{

printf({}``Helo!'');

\}


\caption{Przykład}
\end{algorithm}

\end{document}

może to wina lyx'a:
Code:
\floatname{algorithm}{Algorithm}
Back to top
View user's profile Send private message
kicior
Apprentice
Apprentice


Joined: 25 Mar 2005
Posts: 179
Location: Lublin, Poland

PostPosted: Wed Oct 11, 2006 1:35 pm    Post subject: Reply with quote

Nie bardzo rozumiem problem - daj
Code:
\floatname{algorithm}{Algorytm}
i z głowy.
_________________
Pozdrawiam,
Kicior
Back to top
View user's profile Send private message
szolek
Guru
Guru


Joined: 30 Mar 2005
Posts: 570
Location: Brzóza Królewska

PostPosted: Wed Oct 11, 2006 2:14 pm    Post subject: Reply with quote

Hmm, to zauważyłem. Problem jest w programie LYX, który konwertuje to w taki sposób. Przynajmniej wiem że to nie wynika z samego tex'a.
Back to top
View user's profile Send private message
kicior
Apprentice
Apprentice


Joined: 25 Mar 2005
Posts: 179
Location: Lublin, Poland

PostPosted: Wed Oct 11, 2006 10:58 pm    Post subject: Reply with quote

Wypróbuj kile.
_________________
Pozdrawiam,
Kicior
Back to top
View user's profile Send private message
szolek
Guru
Guru


Joined: 30 Mar 2005
Posts: 570
Location: Brzóza Królewska

PostPosted: Wed Oct 11, 2006 11:09 pm    Post subject: Reply with quote

Szczerze mówiąc brakuje mi wiedzy na temat tex'a ale, przynajmniej w najbliższym czasie, nie będę mógł ją uzupełnić. Lyx to w zasadzie mój pierwszy i bardzo wygodny krok w kierunku składu drukarskiego. ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum