TAILIEUCHUNG - The Not So Short phần 9

Tham khảo tài liệu 'the not so short phần 9', công nghệ thông tin, quản trị mạng phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 6 Customising TA I EX Documents produced with the commands you have learned up to this point will look acceptable to a large audience. While they are not fancy-looking they obey all the established rules of good typesetting which will make them easy to read and pleasant to look at. However there are situations where IATeX does not provide a command or environment that matches your needs or the output produced by some existing command may not meet your requirements. In this chapter I will try to give some hints on how to teach IATeX new tricks and how to make it produce output that looks different from what is provided by default. New Commands Environments and Packages You may have noticed that all the commands I introduce in this book are typeset in a box and that they show up in the index at the end of the book. Instead of directly using the necessary LATEX commands to achieve this I have created a package in which I defined new commands and environments for this purpose. Now I can simply write begin lscommand ci dum end lscommand dum In this example I am using both a new environment called Iscommand which is responsible for drawing the box around the command and a new command named ci which typesets the command name and makes a corresponding entry in the index. You can check this out by looking up the dum command in the index at the back of this book where you ll find an entry for dum pointing to every page where I mentioned the dum command. 108 Customising LATEX If I ever decide that I do not like the commands to be typeset in a box any more I can simply change the definition of the Iscommand environment to create a new look. This is much easier than going through the whole document to hunt down all the places where I have used some generic LATEX commands to draw a box around some word. New Commands To add your own commands use the newcommand name num definition command. Basically the command requires two arguments the name of the command you .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.