在word里边如何从第三页开始插入页码?概述:此方法适合撰写论文时,前面有封面、目录等,从第三页开始插入页码,前两页都没有页码。
当然,这个“三”可以换成任意你需要的页码。
以下拿我之前写过的一篇报告举例说明,均会有截图。
本人使用的是WPS,与Office Word功能一样,使用方法也大同小异。
本说明包含了如何自动插入目录,免去手工敲打目录。
此文件中的所有图片都很清晰,将图片拉大后都可以看清楚。
一、设置标题设置标题,其实是让软件工具识别出哪些是该放入目录中的标题。
1.调试出“任务窗格”。
如果你的WPS工具打开后,右侧就自动有了任务窗格,此步可略去不做。
具体方法:视图→工具栏→任务窗格2.在任务窗格中,选择“样式和格式”3.选择各标题。
在写好的正文中,选择你需要在目录中体现的标题。
例如拿以下正文中的标题“§1 Introduction”,先选中标题,在样式和格式窗口中的“标题1”进行修改,修改的时候,下面会有预览,你可以根据预览修改不同样式。
因为你是事先写好的正文,所以相信你的各个标题字号、字体都已经修改好了,那么这一步就按照你之前设定的设置就可以了。
关于“同时保存到模板”,可以选择,那么你下次使用的时候,各标题的默认值就是这次设定的这些了。
再次选中你要目录中放置的标题,点击“标题1”,就会看到正文的标题左右两侧各有一个黑点,表示你已经将“§1 Introduction”设置为标题1了。
可以放心,打印出来的是没有那两个黑点的。
如果有子标题,可以设置成“标题2”,以下标题类似。
标题问题,到这里就设定好了。
以下插入页码。
二、插入页码1.将光标定在正文的第一个位置,选择插入→分隔符→下一页分隔符,会看到正文的上一页出现了一个空白页(如果第一次点击没看到空白页的话,重复一次插入下一页分隔符)(此空白页,暂时不动,后面步骤会告诉你怎么处理)。
2.光标还是在刚才那个位置(正文第一个位置),选择插入→页码。
首页显示页码,起始页码为1,其它选项自由设定。
现在会看到正文页码是1开始,但正文前面页码有点乱。
没关系,接着跟我做。
3.双击正文第一页的页码位置(也可以选择:视图→页眉和页脚,但操作完后,要选择正文的第一面进行接下来的操作,不要误选其他页面),会看到:选择“同前页”(这个按钮会在你双击页码位置时候出现),将正文第一页的页脚出的“与上一节相同”去掉。
4.现在双击整片文章的第一面的页码位置(也就是最前面),选中页码,手动将页码删掉。
现在你再看看,是不是只有正文开始有页码,其他地方没有页码了呢?成功一半了,继续。
三、插入目录1.现在刚才那个空白页,有用了,可以用它做目录了。
在空白页最上边写上大大的目录两字。
然后按下回车。
鼠标会定在目录下行。
2.这时该设置目录的样式了,仿照设置标题那样做。
点击修改目录1,这里面修改的就是要显示在目录中的文字样式了,自由选择。
但选择样式基于:标题1。
目录2以后的也同样设置。
3.插入→引用→目录,然后选择有几级标题。
当然了,插入完目录,你觉得不满意,可以手动选择调整这些目录的间距、大小等。
大功告成!我说的比较麻烦,其实学会了是很简单的事情。
慢慢练习,做几次就会了。
按住CTRL,再点击目录的标题,会直接跳到正文相应处。
但不得不说,因为可能存在兼容性问题,你用WPS插入的目录,可能在office中会出现找不到页码的错误。
这个是软件兼容问题,但要是为了保险起见,可以手动设置书签,然后手动写上目录,在各个目录标题设置超链接到已设置的书签。
但如果你不需要能调到正文相应位置,也就没必要设置书签、超链接了,直接手写上目录就可以了。
目录§1 Introduction (1)§2 Runtime Environment (1)§3 ADT (1)§4 Algorithm Analysis and Experimental Procedure (2)Basic requirements: (2)Algorithm thoughts: (2)§5 Debuging and Experimental Result (2)Debuging: (2)Experimental Result (3)§6 Summary (4)§7 Program List (4)§1 IntroductionIn computers, the speed of visit hard drive and CPU compute speed had the very big disparity.CPU computing speed is more than access to hard disk speed.Thus, when the search data triggered by different methods, time used vary greatly.In order to improve the speed of search, hash table arises at the historic moment.This experiment by hash function key inspection except leave remainder law, and open to solve the conflict addressable hash.§2 Runtime Environment●Hardware platform:CPU:1.73GHzMemory:2.00GB●Software platform:This procedure is based on the xp system software VC6.0§3 ADTtypedef struct{Datatype data; //data:数据int tag; //tag:标志位}HashItem;typedef struct{HashItem table[TableSize]; //定义表长int currentSize; //当前长度}HashTable;§4 Algorithm Analysis and Experimental Procedure Basic requirements:(1)Hash table by the hash function except leave remainder method, i.e. H (key specific) = key specific % p;(2)Hash table of conflict resolution method using open addressing method, i.e. Hi (key specific) = (H (key specific) + di) % p, among them, I = 1,... , k (k < = p - 1).Algorithm thoughts:Design hash tables, a search operation. Elements And insert, and delete operation used to search operation. So, search the data element operation will have two kinds of cases: one kind is inserted into the operating leisure units for search; Another kind is to find and remove operations, looking for the data element exists search.Insert operation, look for a free search feature is unit hash table does not exist the object, I design, search function returns to find the negative of spare element address; Find and remove operations, looking for the data elements in hash table is already existing features hash table is already exist the data elements, I design in this situation, the search function returns when the store to find the data elements of element address debt.In order to distinguish hash table every table elements, the current state for each table elements set a flag a meta. tag = 0 says the table elements is empty; tag = 1 says the store data elements with elements; tag = -1 said the data storage in the table elements element is deleted.§5 Debuging and Experimental ResultDebuging:First hint input hash table space, which in turn enter confirm the number ofdata elements values. To determine the final be deleted, search the data elements are deleted.Experimental Result1. Finally operation data in the original hash table:2. Finally operating data originally not hash table:§6 SummaryFrom this Programming Experimental,I got Hash table by the hash function except leave remainder method and Hash table of conflict resolution method using open addressing method.Solve hash table conflict problem,and many other methods. For example, chain address method, hashing again, establishing public overflow area, etc.In the later study, I will also try to use other methods to solve problems hash conflict. §7 Program ListHashTable.h file:/*定义结构体*/typedef struct{Datatype data; //data:数据int tag; //tag:标志位}HashItem;typedef struct{HashItem table[TableSize]; //定义表长int currentSize; //当前长度}HashTable;HashTable_operation file:/*初始化操作*/void Initiate(HashTable *h){int i;for(i=0;i<TableSize;i++)(*h).table[i].tag=0;(*h).currentSize=0;}/*查找操作*/int FindPos(HashTable h,Datatype x){int i=x.key%TableSize; //用哈希函数求iint j=i;while(h.table[j].tag==1&&h.table[j].data.key!=x.key){j=(j+1)%TableSize; //用哈希冲突函数求jif(j==i) //表空间全部满,返回-TableSize return -TableSize;}if(h.table[j].tag==1) //该元素已存在时,返回正数下标return j;else //该元素不存在时,返回负数下标return -j;}/*取元素操作*/Datatype GetValue(HashTable h,int i){return h.table[i].data;}/*插入操作*/int Insert(HashTable *h,Datatype x){int i=FindPos(*h,x);if(i>0)return 0;elseif(i!=-TableSize&&(*h).table[-i].tag!=1){(*h).table[-i].data.key=x.key; //插入元素(*h).table[-i].tag=1; //置标记为1(*h).currentSize++; //个数加1return 1;}elsereturn 0;}/*删除操作*/int Delete(HashTable *h,Datatype x){int i=FindPos(*h,x);if(i>=0){(*h).table[i].tag=-1; //置标记为-1(*h).currentSize--; //个数减1return 1;}elsereturn 0;}/*列表操作*/void Print(HashTable h){int i;printf(" i tag data\n");for(i=0;i<TableSize;i++)if(h.table[i].tag==1)printf("%2d %d %d\n",i,h.table[i].tag,h.table[i].data.key); }/*置空操作*/void Clear(HashTable *h){int i;for(i=0;i<TableSize;i++)(*h).table[i].tag=0;(*h).currentSize=0;}HashTable.cpp file:#include <stdio.h>#define TableSize 13typedef int Keytype;typedef struct{Keytype key;}Datatype;#include "HashTable.h"#include "HashTable_operation.h"void main(void){HashTable h;int ip;int i,k,n=0;printf("/************Hashtable Design*************/\n\n\n");printf("Please input the Hashtable's data number:"); //输入哈希列表元素个数scanf("%d",&n);Datatype a[7],item;for(ip=0;ip<n;ip++)scanf("%d",&a[ip]);Initiate(&h);for(i=0;i<n;i++)Insert(&h,a[i]);printf("Hash Table as :\n");Print(h); //依次输出哈希表中各非空数据元素printf("\n\n\n\n");printf("Please input the operate data:");scanf("%d",&item.key);k=FindPos(h,item); //查找元素item.key是否在哈希表中printf("\20Find Operation's result:\n");if(k>=0)printf("Find data %d at location %d\n",item.key,k);elseprintf("Not Find data %d \n",item.key);printf("\20Delete Operation's result:\n");Delete(&h,item);//删除item.keyk=FindPos(h,item);//查找item.keyif(k>=0)printf("Find data %d at location %d\n",item.key,k);elseprintf("Not Find data %d \n",item.key);Clear(&h);}。