* [Comm] LyX, обход проблемы с пробелами в путях
@ 2007-10-19 2:55 Andrei Lomov
2007-10-19 7:12 ` Alexey Morsov
0 siblings, 1 reply; 3+ messages in thread
From: Andrei Lomov @ 2007-10-19 2:55 UTC (permalink / raw)
To: community
Известно, что LyX не будет делать dvi, если путь к файлу
содержит пробелы.
Есть скрипт, который позволяет эту проблему обойти.
Может, кому пригодится
(проверено в KDE; консольный вариант не проверялся):
======================= lyx.m
ndate=`date +%F_%H_%M_%S`
name="$ndate_`basename \"$1\"`"
#name="$ndate_$1" # - консольный вариант
#(когда "$1" содержит только basename)
newpath="/home/$USER/tmp/LyX_is_now_working_here_$ndate"
# Синоним текущей директории:
ln -s "`dirname \"$1\"`" "$newpath"
#ln -s "`pwd`" $newpath # - консольный вариант
# Синоним пути к файлу:
ln -s "$1" "$newpath"/"$name"
# Поместим полезные ссылки в рабочую директорию:
ln -s ~/YourFavoriteDir "$newpath"/YourFavoriteDir
lyx -geometry 1016x695+0+49 "$newpath"/"$name"
# (геометрия для экрана 1024x768 с учетом панели KDE)
rm "$newpath"/YourFavoriteDir
rm "$newpath"
=======================
Буду благодарен за улучшения/замечания
--
Всего доброго,
А.Л.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] LyX, обход проблемы с пробелами в путях
2007-10-19 2:55 [Comm] LyX, обход проблемы с пробелами в путях Andrei Lomov
@ 2007-10-19 7:12 ` Alexey Morsov
2007-10-19 15:42 ` Andrei Lomov
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Morsov @ 2007-10-19 7:12 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
On Fri, Oct 19, 2007 at 09:55:43AM +0700, Andrei Lomov wrote:
>
> Известно, что LyX не будет делать dvi, если путь к файлу
> содержит пробелы.
morsov@alexey ~ $ grep tex_allo .lyx/lyxrc.defaults
\tex_allows_spaces true
не оно ли?
--
С уважением,
Алексей Морсов
программист ЗАО "ИК "Риком-Траст"
Jabber: samurai@www.fondmarket.ru
www.ricom.ru
www.fondmarket.ru
ALT Linux Team Member
email: swi@altlinux.ru
web: www.altlinux.ru, www.sisyphus.ru
NP: Saeko Chiba - Here we Stand in the Morning D (Chrno Crusade ED - Sayonara Solitia)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 481 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-19 15:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-19 2:55 [Comm] LyX, обход проблемы с пробелами в путях Andrei Lomov
2007-10-19 7:12 ` Alexey Morsov
2007-10-19 15:42 ` Andrei Lomov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git